klay_sendRawTransaction

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

📘

Supported on Klaytn (mainnet) only.

Parameters

Request

TypeDescription
DATAThe signed transaction data.

Result

TypeDescription
32-byte DATAThe transaction hash or the zero hash if the transaction is not yet available.

If you deployed a contract, use klay_getTransactionReceipt to get the contract address.

API Endpoint

The format of a Klaytn API endpoint is
https://open-platform.nodereal.io/{{apiKey}}/klaytn/

Here is an example:
https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/klaytn/

Example

// Request
curl https://open-platform.nodereal.io/{{apiKey}}/klaytn/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"klay_sendRawTransaction","params":[{see above}],"id":1}' 

// Result
{
  "jsonrpc": "2.0",
  "id":1,
  "result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
}