Think in Coin | DEV Docs
  • Develop Documents
  • Networks
    • Fantom Network
      • quick-start
        • Short Guide
      • technology
        • Lachesis aBFT
        • Overview
        • Proof of Stake
        • Transaction Fees
        • FAQ
      • staking
        • Quick start
        • Overview
        • Stake on Fantom
        • Run a Validator Node
        • Run a Read-only node
        • Run a Testnet Validator
        • Troubleshooting
      • api
        • Public API endpoints
        • Getting Started
        • Installation
        • GraphQL Schema Basics
        • Schema Structure
        • Implementation Details and Notes
        • Covalent indexing and querying API
      • tutorials
        • Set up Metamask
        • Set up Metamask (testnet)
        • Deploy a Smart Contract
        • Create a Fixed-cap Asset
    • xDAI Chain
      • Welcome to xDai
      • untitled
        • About xdai
          • Projects & DApps
          • Features
          • Use Cases
          • News & Information
          • Roadmaps
          • FAQs
        • For users
          • xDai Token
          • Getting Started with xDai
          • Bridges
          • Wallets
          • Applications
          • Block Explorers
          • Governance
        • For stakers
          • STAKE Token
          • Staking on xDai
          • EasyStaking on Ethereum
          • POSDAO Staking Roadmap
        • For developers
          • Developer Resources & Tools
          • On-Chain Random Numbers
          • Install xDai Client - Run a Non-Validator Node
          • Stable Chain Network Deployment
          • Grants for building on xDai
          • Immunefi Bug Bounty
        • For validators
    • Polygon Network
      • About - Polygon
      • Technology
    • Huobi HECO Chain
      • Huobi Open Platform
    • Binance Chain
      • Create Address
      • Fees
      • Governance
      • Threshold Signature Scheme
      • Atomic Swap
      • WalletConnect
      • Wallets Support
        • WalletConnect Support
        • Trust Wallet User Guide
        • Ledger Wallet Guide
        • Trezor Wallet Guide
        • How to manage BEP8 token with Web Wallet
      • BEP8 Token Protocol
      • Binance DEX Trading
      • Binance Chain Testnet
      • Exchange Integration
      • List Instructions
    • Binance Smart Chain
      • Concepts
        • Consensus
        • Comparison
        • Genesis File
        • BC > BSC Cross-Chain
          • Mechanism
          • Cross-Chain Transfer
          • BSC Relayer
          • Oracle Module
          • Oracle Relayer
          • Relayer incentives
        • Build-in System Contract
        • Governance
      • Ecosystem
      • Gnosis
      • Binance Bridge
        • Release
        • Roadmap
        • User Guides
        • Developer
          • Widget
          • Swagger API reference
        • Partnership
        • Support
          • Customer Support
        • guides
          • Binance Bridge v2
          • Binance Bridge v1
          • Supported Assets
          • Buy BNB as Gas
    • Ethereum (ERC)
      • Ether - Introduction
        • The Ethereum Foundation
        • Community
        • History of Ethereum
        • The Homestead Release
        • What is Ethereum?
        • A platform for decentralized apps
      • The Ethereum network
        • Connecting to the Network
        • Test Networks
      • Mining
      • Contracts and Transactions
        • Account Types, Gas, and Transactions
        • Contracts
        • Accessing Contracts and Transactions
        • Dapps
        • Mix
          • Project Editor
          • Scenarios Editor
          • State Viewer
          • Transaction Explorer
          • JavaScript console
          • Transaction debugger
          • Dapps deployment
          • Code Editor
        • Ethereum Tests
          • Blockchain Tests
          • State Tests
        • Web3 Base Layer Services
    • Harmony ONE
      • developers
        • Getting Started
        • Network & Faucets
        • Deploying on Harmony
        • SDK
        • API
        • Wallets
        • Tools
        • Showcases
        • Hackathon & Bounties
        • Learn
      • network
        • Governance
        • Holders
        • Validators
        • Delegators
      • general
        • Grants
        • Introduction
          • What is Harmony?‌
          • Roadmap
          • Strategy & Architecture
          • Study Materials
          • FAQ
        • Technology
        • Horizon Bridge
        • DApps
        • Ecosystem
        • Community
    • TRON Network (TRC)
      • Introduction
      • Tron Protocol
        • Account
        • Resource Model
        • Super Representatives
          • Mechanism
          • Step to become a Candidate
          • Committee and Proposal
        • Transaction
        • Multi-Signature
          • Example Process Flow
        • Concensus
        • untitled
          • Build transaction locally
      • TRX AND TRC TOKEN
        • TRX
          • TRX Transfer
          • Query TRX balance
        • TRC-10
          • Issue TRC-10 token
          • Participate TRC-10
          • TRC-10 Transfer
          • Query TRC-10 balance
          • TRC-10 Transfer in Smart Contracts
          • Other TRC-10 Interfaces
        • TRC-20
          • Protocol Interface
          • Issuing TRC-20 tokens tutorial
          • TRC-20 Contract Interaction
        • TRC-721
  • Community
    • Github
    • Telegram DEVs
Powered by GitBook
On this page
  • Trading Fees on DEX
  • Fix Fee Table
  • How to calculate multisend fee
  • How are rewards distributed between validators?
  • How to query fees in every block

Was this helpful?

  1. Networks
  2. Binance Chain

Fees

PreviousCreate AddressNextGovernance

Last updated 1 year ago

Was this helpful?

BNB is the native token on Binance Chain, thus users are charged BNB for sending transactions.

Trading Fees on DEX

Trading fees are subject to complex logic that may mean that individual trades are not charged exactly by the rates below, but between them instead; this is due to the block-based matching engine in use on the DEX.

The current fee for trades, applied on the settled amounts, is as follows:

Trading fee can be queried at . It's under the "params/DexFeeParam/". "FeeRate" and "FeeRateNative" are both under unit of 10^-6.

Fix Fee Table

The difference between Binance Chain and Ethereum is that there is no notion of gas. As a result, fees for the rest transactions are fixed. The details are showned in the table below:

  • Current Fees Table on Mainnet

  • Current Fees Table on Testnet

How to calculate multisend fee

bnbcli offers you a multi-send command to transfer multiple tokens to multiple people. 20% discount is available for multi-send transactions. For now, multi-send transaction will send some tokens from one address to multiple output addresses. If the count of output address is bigger than the threshold, currently it's 2, then the total transaction fee is 0.001 BNB per token per address. For example, if you send 3 ABC token,1 SAT token and 1 ABC to 3 different addresses.

[   {      "to":"bnb1g5p04snezgpky203fq6da9qyjsy2k9kzr5yuhl",      "amount":"100000000:BNB,100000000:ABC"   },   {      "to":"bnb1l86xty0m55ryct9pnypz6chvtsmpyewmhrqwxw",      "amount":"100000000:BNB"   },   {      "to":"bnb1l86xty0maxdgst9pnypz6chvtsmpydkjflfioe",      "amount":"100000000:BNB,100000000:SAT"   }]

You will pay on mainnet/testnet

0.0003 BNB * 5 = 0.0015 BNB

How are rewards distributed between validators?

[{msg_type: "submit_proposal",fee: 500000000,fee_for: 1},{msg_type: "deposit",fee: 62500,fee_for: 1},{msg_type: "vote",fee: 0,fee_for: 3},{msg_type: "create_validator",fee: 1000000000,fee_for: 1},{msg_type: "remove_validator",fee: 100000000,fee_for: 1},{msg_type: "dexList",fee: 100000000000,fee_for: 2},{msg_type: "orderNew",fee: 0,fee_for: 3},{msg_type: "orderCancel",fee: 0,fee_for: 3},{msg_type: "issueMsg",fee: 50000000000,fee_for: 2},{msg_type: "mintMsg",fee: 500000000,fee_for: 2},{msg_type: "tokensBurn",fee: 50000000,fee_for: 1},{msg_type: "tokensFreeze",fee: 500000,fee_for: 1},{fixed_fee_params: {msg_type: "send",fee: 37500,fee_for: 1},multi_transfer_fee: 30000,lower_limit_as_multi: 2},{dex_fee_fields: [{fee_name: "ExpireFee",fee_value: 25000},{fee_name: "ExpireFeeNative",fee_value: 5000},{fee_name: "CancelFee",fee_value: 25000},{fee_name: "CancelFeeNative",fee_value: 5000},{fee_name: "FeeRate",fee_value: 1000},{fee_name: "FeeRateNative",fee_value: 400},{fee_name: "IOCExpireFee",fee_value: 10000},{fee_name: "IOCExpireFeeNative",fee_value: 2500}]},{msg_type: "timeLock",fee: 1000000,fee_for: 1},{msg_type: "timeUnlock",fee: 1000000,fee_for: 1},{msg_type: "timeRelock",fee: 1000000,fee_for: 1},{msg_type: "setAccountFlags",fee: 100000000,fee_for: 1},{msg_type: "HTLT",fee: 37500,fee_for: 1},{msg_type: "depositHTLT",fee: 37500,fee_for: 1},{msg_type: "claimHTLT",fee: 37500,fee_for: 1},{msg_type: "refundHTLT",fee: 37500,fee_for: 1}]

The fee_forparameter indicate the different distribution way:

  • 1 means rewards is only for block proposer

  • 2 means rewards are shared among all validators

  • 3 means fee is free.

How to query fees in every block

If you have a fullnode running, you can also get the rewards details exported. To achieve this, you need to set publishBlockFee to be true in your app.toml. To receive rewards stream, there aretwo options publishKafka and publishLocal

# Whether we want publish block fee changespublishBlockFee = trueblockFeeTopic = "accounts"blockFeeKafka = "127.0.0.1:9092"# Global settingpublicationChannelSize = "10000"publishKafka = falsepublishLocal = true

The rewards history are saved under {fullnode home}/marketdata/marketdata.json. For example,

Note: Quantities here are expressed without decimals, i.e. shifted by 10^8

{"Height":59947302,"Fee":"BNB:5000","Validators":["bnb1tpagqqqx36gq09kzw4f5a3a9sk3tq54dpl5ldn"]}{"Height":59947303,"Fee":"BNB:5000","Validators":["bnb1y888axmhzz6yjj464syfy68mkhzy9phlv8fzac"]}{"Height":59947304,"Fee":"BNB:5000","Validators":["bnb19klje94mnu53wj7pmrk0zmtpwgr0uz8th0fcvw"]}{"Height":59947305,"Fee":"BNB:21364","Validators":["bnb19hunw9ps8n9tkrp2j64jvheezgqmfc2eyrxd7a"]}{"Height":59947306,"Fee":"","Validators":[]}...{"Height":59947480,"Fee":"BUSD-BD1:1486828;XRP-BF2:3311258","Validators":["bnb19klje94mnu53wj7pmrk0zmtpwgr0uz8th0fcvw"]}...

Trading fees can be charged in different BEP2 tokens,

you can use to get the latest fee params.

The rewards for Binance Chain validators are displayed in explorer. For example: in block , validator get 0.00005 BNB as rewards.

here
API
59947302
bnb1tpagqqqx36gq09kzw4f5a3a9sk3tq54dpl5ldn