Share your GetBlock experience with other devs and get 5M RPCs

banner image

Last updated on January 1, 1970

1 min read

Method eth_coinbase Optimism (OP)
connect with WS protocol

eth_coinbase

info-circle-fill

Returns the client coinbase address.

Parameters

-

Request

wscat -c wss://optimism.getblock.io/YOUR-API-KEY/mainnet/ 
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_coinbase",
"params": [],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x00000398232e2064f896018496b4b44b3d62751f"
}
banner icon

Start Building with GetBlock RPCs for Free