Ethereum API
eth_coinbase
Summary: Returns the client coinbase address.
Parameters
This method doesn't accept any parameters.
Returns
Coinbase address string
hex encoded address
Customize request
Parameter
Value
Connect your MetaMask wallet to run requests successfully.
Request
await window.ethereum.request({
"method": "eth_coinbase",
"params": [],
});
Example response
"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73"