Transaction Fees | Avalanche Docs (2024)

In order to prevent spam, transactions on Avalanche require the payment of a transaction fee. The fee is paid in AVAX. The transaction fee is burned (destroyed forever).

When you issue a transaction through Avalanche's API, the transaction fee is automatically deducted from one of the addresses you control.

Different types of transactions require payment of a different transaction fee. This table shows the transaction fee schedule:

+----------+---------------------------+--------------------------------+| Chain | Transaction Type | Mainnet Transaction Fee (AVAX) |+----------+---------------------------+--------------------------------+| P | Create Subnet | 1 |+----------+---------------------------+--------------------------------+| P | Create Blockchain | 1 |+----------+---------------------------+--------------------------------+| P | Add Validator | 0 |+----------+---------------------------+--------------------------------+| P | Add Subnet Validator | 0.001 |+----------+---------------------------+--------------------------------+| P | Add Permissionless | Primary Network: 0 || | Validator | Subnet: 0.001 |+----------+---------------------------+--------------------------------+| P | Add Delegator | 0 |+----------+---------------------------+--------------------------------+| P | Add Subnet Delegator | 0.001 |+----------+---------------------------+--------------------------------+| P | Add Permissionless | Primary Network: 0 || | Delegator | Subnet: 0.001 |+----------+---------------------------+--------------------------------+| P | Import AVAX | 0.001 |+----------+---------------------------+--------------------------------+| P | Export AVAX | 0.001 |+----------+---------------------------+--------------------------------+| X | Send | 0.001 |+----------+---------------------------+--------------------------------+| X | Create Asset | 0.01 |+----------+---------------------------+--------------------------------+| X | Mint Asset | 0.001 |+----------+---------------------------+--------------------------------+| X | Import AVAX | 0.001 |+----------+---------------------------+--------------------------------+| X | Export AVAX | 0.001 |+----------+---------------------------+--------------------------------+| C | Simple send | >= 0.001575* |+----------+---------------------------+--------------------------------+(*) C-Chain gas price varies. See below.

On Fuji Testnet, all fees are the same as those on Mainnet, except the following ones:

  • Create Subnet: 0.1 AVAX
  • Create Blockchain: 0.1 AVAX

C-Chain Fees

The Avalanche C-Chain uses an algorithm to determine the "base fee" for a transaction. The base fee increases when network utilization is above the target utilization and decreases when network utilization is below the target.

Dynamic Fee Transactions

Transaction fees for non-atomic transactions are based on Ethereum's EIP-1559 style Dynamic Fee Transactions, which consists of a gas fee cap and a gas tip cap.

The fee cap specifies the maximum price the transaction is willing to pay per unit of gas. The tip cap (also called the priority fee) specifies the maximum amount above the base fee that the transaction is willing to pay per unit of gas. Therefore, the effective gas price paid by a transaction will be min(gasFeeCap, baseFee + gasTipCap). Unlike in Ethereum, where the priority fee is paid to the miner that produces the block, in Avalanche both the base fee and the priority fee are burned. For legacy transactions, which only specify a single gas price, the gas price serves as both the gas fee cap and the gas tip cap.

Use the eth_baseFee API method to estimate the base fee for the next block. If more blocks are produced in between the time that you construct your transaction and it is included in a block, the base fee could be different from the base fee estimated by the API call, so it is important to treat this value as an estimate.

Next, use eth_maxPriorityFeePerGas API call to estimate the priority fee needed to be included in a block. This API call will look at the most recent blocks and see what tips have been paid by recent transactions in order to be included in the block.

Transactions are ordered by the priority fee, then the timestamp (oldest first).

Based off of this information, you can specify the gasFeeCap and gasTipCap to your liking based on how you prioritize getting your transaction included as quickly as possible vs. minimizing the price paid per unit of gas.

Base Fee

The base fee can go as low as 25 nAVAX (Gwei) and has no upper bound. You can use the eth_baseFee and eth_maxPriorityFeePerGas API methods, or Snowtrace's C-Chain Gas Tracker, to estimate the gas price to use in your transactions.

Further Readings

  • Adjusting Gas Price During High Network Activity
  • Sending Transactions with Dynamic Fees using JavaScript

Atomic Transaction Fees

C-Chain atomic transactions (that is imports and exports from/to other chains) charge dynamic fees based on the amount of gas used by the transaction and the base fee of the block that includes the atomic transaction.

Gas Used:

+---------------------+-------+| Item : Gas |+---------------------+-------+| Unsigned Tx Byte : 1 |+---------------------+-------+| Signature : 1000 |+---------------------+-------+| Per Atomic Tx : 10000 |+---------------------+-------+

Therefore, the gas used by an atomic transaction is 1 * len(unsignedTxBytes) + 1,000 * numSignatures + 10,000

The TX fee additionally takes the base fee into account. Due to the fact that atomic transactions use units denominated in 9 decimal places, the base fee must be converted to 9 decimal places before calculating the actual fee paid by the transaction. Therefore, the actual fee is: gasUsed * baseFee (converted to 9 decimals).

Transaction Fees | Avalanche Docs (2024)
Top Articles
The Latest Phishing Statistics (updated June 2024) | AAG IT Support
What is DSL? | A Quick Start Guide to Understanding DSL | RingCentral UK Blog
Kreme Delite Menu
Skyward Houston County
Voorraad - Foodtrailers
What are Dietary Reference Intakes?
Davante Adams Wikipedia
How To Get Free Credits On Smartjailmail
The Pope's Exorcist Showtimes Near Cinemark Hollywood Movies 20
Bloxburg Image Ids
Www Craigslist Louisville
Nation Hearing Near Me
Big Y Digital Coupon App
Palace Pizza Joplin
Bill Devane Obituary
Helloid Worthington Login
Identogo Brunswick Ga
104 Whiley Road Lancaster Ohio
Sky X App » downloaden & Vorteile entdecken | Sky X
Hanger Clinic/Billpay
All Obituaries | Buie's Funeral Home | Raeford NC funeral home and cremation
Tamilyogi Proxy
Ruben van Bommel: diepgang en doelgerichtheid als wapens, maar (nog) te weinig rendement
Gayla Glenn Harris County Texas Update
Putin advierte que si se permite a Ucrania usar misiles de largo alcance, los países de la OTAN estarán en guerra con Rusia - BBC News Mundo
Contracts for May 28, 2020
Ihub Fnma Message Board
55Th And Kedzie Elite Staffing
Preggophili
Maine Racer Swap And Sell
Lbrands Login Aces
Craigslist Boerne Tx
Tripcheck Oregon Map
Napa Autocare Locator
The Venus Flytrap: A Complete Care Guide
Lowell Car Accident Lawyer Kiley Law Group
Ourhotwifes
Goodwill Houston Select Stores Photos
10 Most Ridiculously Expensive Haircuts Of All Time in 2024 - Financesonline.com
Mydocbill.com/Mr
The Transformation Of Vanessa Ray From Childhood To Blue Bloods - Looper
Sofia With An F Mugshot
Winta Zesu Net Worth
Holzer Athena Portal
Funkin' on the Heights
Amy Zais Obituary
How to Connect Jabra Earbuds to an iPhone | Decortweaks
Noga Funeral Home Obituaries
Is Chanel West Coast Pregnant Due Date
Elvis Costello announces King Of America & Other Realms
Pulpo Yonke Houston Tx
Mast Greenhouse Windsor Mo
Latest Posts
Article information

Author: Prof. Nancy Dach

Last Updated:

Views: 6413

Rating: 4.7 / 5 (77 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Prof. Nancy Dach

Birthday: 1993-08-23

Address: 569 Waelchi Ports, South Blainebury, LA 11589

Phone: +9958996486049

Job: Sales Manager

Hobby: Web surfing, Scuba diving, Mountaineering, Writing, Sailing, Dance, Blacksmithing

Introduction: My name is Prof. Nancy Dach, I am a lively, joyous, courageous, lovely, tender, charming, open person who loves writing and wants to share my knowledge and understanding with you.