Skip to main content

eth_coinbase

The eth_coinbase command returns the address of the client codebase.

A coinbase address can be added by starting your Ethereum client and setting the --miner-coinbase option to a valid ETH account address.

To obtain your valid Ethereum address, use MetaMask or another client like Etherscan.

Parameters

none

Returns

DATA, 20 bytes - the current coinbase address.

Example Request and Result for eth_coinbase

Request

curl -H "Content-Type: application/json" \
-d '{"id": 1, "jsonrpc":"2.0", "method": "eth_coinbase", "params": []}' \
https://moonbeam.blastapi.io/<project-id>

Result

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