erigon-pulse/cmd/rpcdaemon/commands/send_transaction.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

14 lines
331 B
Go

package commands
import (
"context"
"github.com/ledgerwatch/turbo-geth/common"
"github.com/ledgerwatch/turbo-geth/common/hexutil"
)
func (api *APIImpl) SendRawTransaction(_ context.Context, encodedTx hexutil.Bytes) (common.Hash, error) {
res, err := api.ethBackend.AddLocal(encodedTx)
return common.BytesToHash(res), err
}