Skip to main content

getCoinbase

Callable

  • getCoinbase(web3Context: Web3Context<EthExecutionAPI, any>): Promise<string>

  • Parameters

    • web3Context: Web3Context<EthExecutionAPI, any>

      (Web3Context) Web3 configuration object that contains things such as the provider, request manager, wallet, etc.

    Returns Promise<string>

    Returns the coinbase address to which mining rewards will go.

    web3.eth.getCoinbase().then(console.log);
    > "0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe"