eth_gasPrice

PolygonC1

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

Returns

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

Request

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

Polygon API

Recarga, obtén tu clave y publica.

Autoservicio. Paga en cripto o con tarjeta. Medido por créditos: las primitivas pesadas cuestan más, las simples son baratas.

Obtener clave API