eth_sendRawTransaction

Creates new message call transaction or a contract creation for signed transactions.

Ethereum.org API Reference

Parameters

DATA, The signed transaction data.

Returns

DATA, 32 Bytes - the transaction hash, or the zero hash if the transaction is not yet available.

Use eth_getTransactionReceipt to get the contract address, after the transaction was mined, when you created a contract.

Example

Request

curl --request POST \
     --url https://endpoints.omniatech.io/v1/RPC_ENDPOINT \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "params": [
    "0x02f9013401830b1a68843b9aca008508aafc45e4830493ee9498c3d3183c4b8a650614ad179a1a98be0a8d6b8e80b8c4ce2e62ff0000000000000000000000000000000000000000000002394ff4aa9621fc5166000000000000000000000000000000000000000000000000000000005072bc2b0000000000000000000000005fa9569b0ed6aa01e234468e6a15b77988b950df0000000000000000000000005732046a883704404f284ce41ffadd5b007fd66800000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000064e78760c080a073c2ae9e22bcd48aacf101051ea98da7c9e60013c51895f8f5b992e4352fb99da01c1034de7e633dc4d851b2770bd4d9922fde32c53f8647a26ed12df5b20b1551"
  ],
  "method": "eth_sendRawTransaction"
}
'

Response

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

Last updated