eth_sendRawTransactionSync

Request an update

Adds the signed transaction to the transaction pool, waits until it is included in a block, and returns the receipt. Returns an error if the timeout ends first.

Source: go-ethereum 30456d2 internal/ethapi/api.go:2044

Generated from Nitro v3.12.2.

$NITRO_RPC_URL

$NITRO_RPC_URL is the RPC URL of your Nitro node.

Params

  1. [0] input Bytes requiredSigned transaction, RLP encoded.
  2. [1] timeoutMs Integer optionalOptional. Time to wait for the receipt, in milliseconds. The default is the node's tx-sync-default-timeout; the node caps the wait at its tx-sync-max-timeout.Defaults to 20000

Result

Prop

Type

{  "jsonrpc": "2.0",  "id": 1,  "result": {}}

Go definition

// go-ethereum 30456d2 internal/ethapi/api.go:2044func (api *TransactionAPI) SendRawTransactionSync(ctx context.Context, input hexutil.Bytes, timeoutMs *uint64) (map[string]interface{}, error)
curl -X POST $NITRO_RPC_URL \  -H "Content-Type: application/json" \  -d '{  "jsonrpc": "2.0",  "id": 1,  "method": "eth_sendRawTransactionSync",  "params": [    "<signed transaction, hex>",    5000  ]}'

How is this guide?