mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-24 20:47:16 +00:00
5d39fe8873
* use eth.backend * net_version * add coinbase to the console test
14 lines
331 B
Go
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
|
|
}
|