eth_gasPrice

BNB Smart ChainC1

Returns the node's current gas-price estimate in wei, derived from recent blocks. Takes no parameters.

Endpoint
POST https://api.1st-node.com/v1/bsc/rpc

Returns

QUANTITY — the gas price in wei, hex-encoded.

Request

curl https://api.1st-node.com/v1/bsc/rpc \
  -H "Authorization: Bearer $ONE_KEY" \
  -H "content-type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_gasPrice",
  "params": []
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_gasPrice",
  "params": []
}

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x3b9aca00"
}
More chain methods on BNB Smart Chain

BNB Smart Chain API

Recarregue, pegue a chave e publique.

Autoatendimento. Pague em cripto ou cartão. Medido por créditos: primitivas pesadas custam mais, as simples são baratas.

Obter chave de API