eth_gasPrice

BaseC1

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/base/rpc

Returns

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

Request

curl https://api.1st-node.com/v1/base/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 Base

Base API

充值、拿密钥、上线。

自助开通。支持加密货币或银行卡。按额度计费——重型原语更贵,简单调用很便宜。

获取 API 密钥