priorityFee
is not applicable to Arbitrum and can be left blank.
Gas fees are the costs associated with initiating a transaction on a given blockchain, allowing network validators to perform the requested function.
Gas fees can fluctuate due to network congestion, the type of transaction you request, and the priority placed on your request. You can accelerate a transaction by paying additional gas fees.
Each blockchain has its own native asset required to pay these fees. When interacting with the blockchain, you'll need to account for the amount of this native asset required for the requested transaction.
You can estimate transaction fees and contract execution with Circle's Wallets API.
Watch this video to learn about gas fees, also known as transaction fees. In the video, you will learn the importance of gas fees, understand how to estimate fees for a transfer transaction using an API and send USDC to other wallets using the estimates.
When initiating a request via the Wallets APIs that requires gas fees, you have two options for configuring your fee tolerance: fee levels and gas limits.
Fee levels provide a simple way to configure your gas tolerance. Depending on your choice, the speed in which your transaction completes compared to the expected blockchain confirmation timing may vary.
You can choose between three tolerance levels:
low
- a low-priority transaction, expected to take longer than the average
amount of time to complete, with lower feesmedium
- a medium-priority transaction, expected to take the average amount
of time to complete, with average feeshigh
- a high-priority transaction, expected to take less than the average
amount of time to complete, with higher feesGas limits allow for a more advanced configuration of your gas tolerance. Setting gas limit requires the following parameters, which are all designated in wei:
gasLimit
- the base amount of gas required to process the requested
transactionpriorityFee
- an additional “tip” that can be added to the validator to
accelerate the requested transactionmaxFee
- maximum fee that can be used for the requested transaction, if the
fee is greater, the transaction will be failed. Note that Solana has no
concept of a max fee.While EVM chains and Solana support fee levels, you can also assign your own gas fee. The process differs based on the blockchain and protocols supported.
When
creating a transfer transaction,
you must specify gasLimit
, maxFee
, and priorityFee
. Your actual fee will
be (base fee + priority fee) * gas used . Note that you do not need to
specify the base fee in your transaction because it is automatically determined
and adjusted by the network based on its current congestion level.
priorityFee
is not applicable to Arbitrum and can be left blank.
The gas fee mechanism is similar to EIP-1559, where you can specify the
priority fee
to incentivize miners to include your transaction in a block.
However, there's no max fee concept in Solana, and the gasLimit
is optional as
Solana defaults to a gas limit of 200,000 micro-lamport (10-15 SOL).
The following table shows the estimated gas fees on various blockchains as of September 2024, trailing six months average.
Ethereum | Base | Optimism | Polygon | Avalanche | Arbitrum | Unichain | Solana | |
---|---|---|---|---|---|---|---|---|
Price of native token (USD) | $3,046 | $3,046 | $3,046 | $0.54 | $28 | $3,046 | $3046 | $151 |
SCA wallet creation is unique to EVMs and has a gas cost in deploying the smart contract account. We do lazy deployment at the time of first outbound transaction so there's no cost in creation and deposits.
The following table shows the estimated total gas fees in native tokens and USD for wallet creation and fungible token transfers on various blockchains for SCA wallets.
Ethereum | Base | Optimism | Polygon | Avalanche | Arbitrum | Unichain | |
---|---|---|---|---|---|---|---|
Wallet deployment fee (native tokens) | 0.0020745 | 0.000000040589440509 | 0.000000040624052029 | 0.0372023 | 0.0122877 | 0.0000034 | 0.0000001 |
Wallet deployment fee (USD) | $6.319 | $0.00012363543 | $0.00012374086 | $0.020 | $0.344 | $0.010 | $0.0004 |
Fungible token transfer total fee (native tokens) | 0.0012237 | 0.000000014010345339 | 0.000000012263512376 | 0.0219454 | 0.0072485 | 0.0000021 | 0.00000003 |
Fungible token transfer total fee (USD) | $3.727 | $0.00004267551 | $0.00003735465 | $0.012 | $0.203 | $0.006 | $0.00009 |
While creating an EOA wallet is free, you must create an associated token account (ATA) for Solana to receive deposits of a non-native token. The fee is required for the first deposit, and can be recovered if you close the account.
The following table shows the estimated total gas fees in native tokens and USD for account creation and fungible token transfers on various blockchains for EOA wallets.
Ethereum | Base | Optimism | Polygon | Avalanche | Arbitrum | Unichain | Solana | |
---|---|---|---|---|---|---|---|---|
Account creation fee (native tokens) | - | - | - | - | - | - | - | 0.0020910 |
Account creation fee (USD) | - | - | - | - | - | - | - | $0.316 |
Fungible token transfer total fee (native tokens) | 0.0002861 | 0.000000052098003158 | 0.000000719669260705 | 0.0051312 | 0.0016948 | 0.0000006 | 0.0000002 | 0.0000388 |
Fungible token transfer total fee (USD) | $0.872 | $0.00015869051 | $0.00219211256 | $0.003 | $0.047 | $0.002 | $0.0008 | $0.0059 |