eth_coinbase
Returns the currently selected account address. Since @metamask/connect-evm 1.3.1, this returns a single address (not an array).
Parameters
This method doesn't accept any parameters.
Returns
hex encoded address
Example request
await provider.request({
method: 'eth_coinbase',
params: [],
})
Example response
{
"id": 1,
"jsonrpc": "2.0",
"result": "0xfe3b557e8fb62b89f4916b721be55ceb828dbd73"
}