Problem with gas fees
Blockchains require gas transaction fees to incentivize validators and protect networks against denial of service attacks. The mechanics for these fees have traditionally been built into the blockchain itself, often requiring gas fees to be paid in native tokens and sourced by the address that initiated the transaction. The experience of sourcing native tokens by the originating wallet makes it hard for users to interact onchain and limits the usability of blockchain applications. Depending on the blockchain, there can be different ways to abstract gas. For example:- On EVM chains: With the introduction of ERC-4337 (account abstraction), there is a way to pay network fees in non-native tokens via smart contracts called paymasters
- On Solana: By using the concept of fee-payers, third party wallets can pay for gas on behalf of a user.
Circle’s Gas Station solution
Circle’s Gas Station utilizes paymasters (on EVM) and fee-payers (on Solana) to create a solution that completely abstracts gas. Circle has deployed paymaster smart contracts and fee-payer wallets that developers can use with Circle Wallets. The solution has the following components:- Gas Sponsor: A third party smart contract or wallet that pays on-chain
gas fees according to the sponsorship conditions.
- Paymaster (EVM): Smart contract (ERC-4337 standard)
- Fee-Payer (Solana): Wallets that pay gas fees
- Policy: Let developers set up custom rules and limits on the blockchains they want to sponsor.
- Billing: Let developers pay all the gas fees using their preferred payment modes (cards).
"accountType": "SCA" in the create wallet API for Wallets.
To learn more on creating a SCA wallet follow one of the two guides:
On Solana, Gas Station can
sponsor the rent deposit for
ATAs, or you can
create and fund an ATA yourself.