eth_gasPrice

OptimismC1

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

Returns

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

Request

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

Optimism API

Пополнили, получили ключ, запустили.

Полное самообслуживание. Оплата криптой или картой. Тарификация в кредитах — тяжёлые примитивы дороже, простые дёшевы.

Получить API-ключ