BNB Smart Chain
BNB Smart Chain
BNB Smart Chain
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
BNB Smart Chain runs as chain ID 56 and charges all gas in BNB. eth_maxPriorityFeePerGas gives you a starting tip to attach when you build a transaction for its ~3-second PoSA blocks. Query https://bsc.therpc.io/YOUR_API_KEY and the method returns the node's suggested priority fee, meaning the tip per gas unit, for EIP-1559 transactions, expressed as a hex value in wei. That figure is a heuristic the node derives from recent block history. Treat it as a reasonable default, not a guaranteed inclusion price on BNB Smart Chain.
maxPriorityFeePerGas field when assembling an EIP-1559 transaction bound for BNB Smart Chain so validators see a competitive tip.此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| string | Hex-encoded priority fee in wei. This is the node's heuristic — typically derived from recent block history. |
Try it live in the BNB Smart Chain playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32000 | method not supported | The connected network does not implement EIP-1559 and does not support this method. |
eth_gasPrice for a legacy gas price instead.eth_feeHistory with explicit percentiles rather than relying on this single suggested number.