Skip to main content

Gas and Fees

In this document, we specify the gas and fee structure on zkBNB.

caution

This is a living document and is susceptible to changes. Gas and Fee charges may differ.

Gas Costs on zkBNB

L2 Gas usedPrice(BNB)
Transfer token/NFT60610.00002
Mint NFT100000.000033
Withdraw token606060.0002
Withdraw NFT2424240.0008
Active account454550.00015
Full exit token/NFT757580.00025
Deposit/0
NFT atomic match/0
Create collection121210.00004
Cancel offer60610.00002

Fee on zkBNB

There are three types of fees associate with using zkBNB

  • Protocol Fees
  • Gas Fees
  • Marketplace Fee

Fees are additional amounts that a user pays on top of a base price of an asset. These can be imposed by various entities. The following table illustrates the fees on zkBNB.

EntityType of FeeAmountExample
zkBNBProtocol2% of every NFT tradeAlice lists an NFT for 1 ETH on a marketplace. When Bob purchases this NFT, he would need to pay 1.02 ETH where 1 ETH goes to Alice and 0.02 ETH goes to zkBNB.
3rd parties builds marketplace via zkBNBMaker Marketplace Fee"Decided by 3rd platforms"Alice wishes to receive 0.99 ETH for her NFT assets and lists it on a marketplace that imposes a maker fee of 1%. Therefore, the price that the asset will be listed for on the marketplace is 1 ETH.
3rd parties builds marketplace via zkBNBTaker Marketplace FeeDecided by 3rd platformsAlice wishes to receive 1 ETH for her NFT assets and lists it on a marketplace. Bob wishes to buy the asset from a different marketplace that imposes a taker fee of 1% and marketplace fee is 1.5% and will therefore be presented with a buying price of 1.025 ETH inclusive of the taker marketplace fee.
Collection royalty recipient, ie. owner of an NFT smart contractRoyaltyDecided by CreatorsAlice mints a collection of assets on zkBNB and sets a 5% royalty for every asset in the collection to go to her.
Bob owns an asset from Alice's collection and sets the sale price of 1 ETH. The marketplace on which he lists the asset will display a selling price of 1 ETH.
When Ciaran comes along and buys this asset, he pays 1.05 ETH, 1 ETH of which goes to Bob, and 0.05 ETH goes to Alice.

When are fees charged on zkBNB?

In zkBNB the cost of every transaction comes from two parts:

  • L2 part: every transaction needs to read or write state storage, and zkBNB prover needs to generate a SNARK proof for every transaction. This part depends on the use of hardware resources and is therefor invariable;

  • L1 part: zkBNB must pay BNB gas to commit, verify and execute L2 blocks by sending corresponding L1 transaction. The L1 fees need to be averaged per L2 transaction which is orders of magnitude cheaper than the cost of normal BNB/BEP20 transfers. In addition, for the special transaction types which need to be executed on contract such as Withdraw and WithdrawNft, there is extra gas cost to be covered.

Users can easily get fee cost of every transaction type using rpc method provided by zkBNB, then pay transaction fees in multi fee tokens supported by zkBNB. For example, suppose zkBNB supports BNB/USDT, when users make a transaction, users can use BNB or USDT to pay transaction fees for their own convenience.