BNB Smart Chain
BNB Smart Chain
BNB Smart Chain
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
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.Este método não aceita parâmetros. Passe um array vazio [].
| Tipo | Descrição |
|---|---|
| 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.
| Código | Mensagem | Causa |
|---|---|---|
-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.