Returns the client coinbase address.
Request Format
{
"jsonrpc": "2.0",
"method": "eth_coinbase",
"params": [],
"id": 1
}
Response Format
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xfe3b557e8fb62b89f4916b721be55ceb828dbd73"
}
Parameters
None.
Return Value
- Coinbase Address (
address
): Returns the address of the coinbase (mining) account for the client.
Example
Request
{
"jsonrpc": "2.0",
"method": "eth_coinbase",
"params": [],
"id": 1
}
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xfe3b557e8fb62b89f4916b721be55ceb828dbd73"
}
Notes
- The coinbase address is typically the account that receives mining rewards.
- In Proof of Stake (PoS) networks, this may be less relevant, but still exists for compatibility reasons.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xfe3b557e8fb62b89f4916b721be55ceb828dbd73"
}