Portal
Search…
eth_coinbase
Returns the coinbase address to which mining rewards will go.
1
web3.eth.getCoinbase([callback])
Copied!

Returns

The coinbase address set in the node for mining rewards

Example

1
> web3.eth.getCoinbase().then(console.log)
2
> 0x0000000000000000000000000000000000000000
Copied!
Last modified 7mo ago
Copy link