LogoLogo
  • Getting Started
    • Vanar
      • 🌐Overview
      • 🪙$VANRY Token
      • 🏛️The Vanar Foundation
    • Why Vanar?
      • 💡Our Philosophy
      • 🌍Green Chain
      • 🚀Fixed Fees
      • ⁉️Why L1?
      • 🏅Why Choose Vanar
      • ⭐Proof of Reputation
    • Vanar Architecture
      • Protocol Customizations
        • Native Gas Token ($VANRY)
        • Fixed Fees
        • Transaction Ordering
        • Block Rewards
        • Block Time
        • Block Size
      • EVM Compatibility
      • Consensus Mechanism
      • Fixed Fees
        • Gas Fees Tiers
        • How it works
        • Gas Price API
        • Fixed Fees Management
        • $VANRY Token Price API
  • Builders
    • For Developers
      • 🪐Vanar Network Details
      • ☑️Adding Network to Wallet
      • 🔗Connect Wallet to Vanar Chain
      • ⛽Gas Estimation
      • Build with thirdweb
        • Connect
        • Contracts
        • Engine
        • SDKs
      • Tutorials
        • Deploy a Token Contract - ERC20
        • Deploy an NFT Contract - ERC721
        • Deploy a Token Contract - ERC20 (Thirdweb)
        • Deploy an NFT Contract - ERC721 (Thirdweb)
    • Vanguard
      • Explorer
      • Faucet
      • Test $VG
  • Nodes and Validators
    • Staking
      • How To Stake
      • How To Unstake
      • How To Claim Rewards
    • Vanar Nodes
    • Setup a RPC Node
    • Setup a Validator Node
  • Tools
    • GroV
      • Frequently Asked Questions
  • White paper
  • vanarchain.com
Powered by GitBook
On this page
  1. Getting Started
  2. Vanar Architecture
  3. Fixed Fees

Gas Price API

Vanar has a public API that gives the gas price details in terms of $VANRY token for all the tiers at any given moment. This API allows you to identify the required amount of $VANRY gas token to pay as transaction fees for any given transaction based on the size of the transaction in terms of gas. Below is a copy of the API response for reference.

Here you can see that any transaction with less than 12,000,000 gas will require only small amount of gas token that is equivalent to $0.0005 in terms of USD value. This range covers the vast majority of transaction types including token transfers, minting NFTs, staking tokens, token swaps and even contract deployments.

{
    "success": true,
    "data": [
        {
            "tier": 1,
            "gas_range_gwei": "0-12000000",
            "tx_fee": 0.002490894602887474,
            "usd_value": 0.0005
        },
        {
            "tier": 2,
            "gas_range_gwei": "12000001-15000000",
            "tx_fee": 7.472683808662421,
            "usd_value": 1.5059
        },
        {
            "tier": 3,
            "gas_range_gwei": "15000001-20000000",
            "tx_fee": 14.945367617324843,
            "usd_value": 3.0119
        },
        {
            "tier": 4,
            "gas_range_gwei": "20000001-25000000",
            "tx_fee": 37.363419043312106,
            "usd_value": 7.5296
        },
        {
            "tier": 5,
            "gas_range_gwei": "25000001-30000000",
            "tx_fee": 74.72683808662421,
            "usd_value": 15.0593
        }
    ]
}

API Endpoint

You can use the following API endpoint to get the latest gas fees applicable to each tier.

PreviousHow it worksNextFixed Fees Management

Last updated 11 months ago

https://mrawakxvyzsfqtkm.vanarchain.com/vanary-price