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.
eth_gasPrice asks a BNB Smart Chain node what single per-gas price it currently recommends, returned as a hex wei value priced in BNB. BSC has historically favored low, fairly stable gas, so this one-number suggestion is often all a simple sender needs. Hit https://bsc.therpc.io/YOUR_API_KEY at chain ID 56 and you get the node's view of the going rate — the figure to drop into the gasPrice slot of a legacy, type-0 transaction.
gasPrice field of a legacy type-0 BNB transaction, the simplest send a wallet can construct.eth_feeHistory percentiles for a sturdier estimate.Este método não aceita parâmetros. Passe um array vazio [].
| Tipo | Descrição |
|---|---|
| string (hex) | Hex-encoded gas price in wei (e.g. "0x4a817c800" = 20 gwei). |
Try it live in the BNB Smart Chain playground.
| Código | Mensagem | Causa |
|---|---|---|
-32603 | Internal error | Node could not estimate current gas price. |
eth_maxPriorityFeePerGas plus eth_feeHistory instead of this single figure.