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キーを取得