erigon-pulse/cmd/rpcdaemon/commands/send_transaction.go

14 lines
331 B
Go
Raw Normal View History

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
}