BNB Smart Chain
BNB Smart Chain
BNB Smart Chain
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
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.Cette méthode ne prend aucun paramètre. Passez un tableau vide [].
| Type | Description |
|---|---|
| string (hex) | Hex-encoded gas price in wei (e.g. "0x4a817c800" = 20 gwei). |
Try it live in the BNB Smart Chain playground.
| Code | Message | Cause |
|---|---|---|
-32603 | Internal error | Node could not estimate current gas price. |
eth_maxPriorityFeePerGas plus eth_feeHistory instead of this single figure.