erigon-pulse/cmd/rpcdaemon/commands/coinbase.go
Evgeny Danilenko 5d39fe8873
RPCDeamon coinbase, net_version (#911)
* use eth.backend

* net_version

* add coinbase to the console test
2020-08-12 14:47:59 +01:00

13 lines
261 B
Go

package commands
import (
"context"
"github.com/ledgerwatch/turbo-geth/common"
)
// Etherbase is the address that mining rewards will be send to
func (api *APIImpl) Coinbase(_ context.Context) (common.Address, error) {
return api.ethBackend.Etherbase()
}