Standard Ethereum JSON-RPC 2.0

    Quickstart

    Pinax RPC endpoints are standard JSON-RPC 2.0 over HTTPS. Pick a network, embed your API key in the URL path, and POST a JSON-RPC body. Browse the full method catalog below or hit Try it on any method to send a live request.

    No API key on this team yet — sample shows YOUR_API_KEY placeholder.
    cURL
    1curl 'https://eth.rpc.service.pinax.network/v1/YOUR_API_KEY/' \
    2 -H 'Content-Type: application/json' \
    3 -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'
    Supported networks (32)
    EthereumEthereumBNBBNBBaseBasePolygonPolygonOptimismOptimismArbitrum OneArbitrum One
    execution

    eth_estimateGas

    KEY REQUIRED

    Estimate gas

    Returns the gas units a transaction would consume if executed against the latest state.
    POST
    https://eth.rpc.service.pinax.network/v1/<API_KEY>/

    Required parameters

    NameTypeDescription
    torequired
    addressRecipient address.
    e.g. 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48

    Optional parameters

    NameTypeDescription
    data
    hexOptional call data.
    e.g. 0x18160ddd
    from
    addressOptional sender.
    value
    hexOptional wei value to send (hex).

    Request body

    {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "eth_estimateGas",
      "params": [
        "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
        "0x18160ddd"
      ]
    }

    Response

    200 OK

    Hex-encoded gas estimate.

    {
      "jsonrpc": "2.0",
      "id": 1,
      "result": "0x5208"
    }