POSTklay_sendRawTransaction

Submits signed transaction data to the network. When the transaction is processed successfully, the transaction hash is returned. Transaction signing must be performed client-side with a private key. The node only validates the transaction.

Request Body
idintegerrequired
jsonrpcstringrequired
methodstringrequired
paramsoneOf[]required

Enter the following parameters as an array with the appropriate types.

  1. signed transaction hash:
params[0]string

Signed transaction hash represents the hash of the signed transaction. It is expressed as a hexadecimal string starting with 0x. To obtain a signed transaction hash, follow these steps:

  1. Create transaction data. This includes sender, recipient, gas price, gas limit, amount to send, etc.
  2. RLP (Recursive Length Prefix) encode the transaction data.
  3. Create a hash value by passing the RLP-encoded data through the Keccak-256 hash function.
  4. Sign the generated hash. The signed hash is the signed transaction hash.
Responses

응답 본문이 없습니다.

X-API-KEY
RequestCU40
cURL
curl -X POST "https://kaia-mainnet.nodit.io/" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "klay_sendRawTransaction",
  "params": [
    "0x02f8688080808080943f39cfbaff46cb736a603269d14a7e9adf5158b488016345785d8a000080c001a005599173ee4483fa38044e8d7bf592b58a9ab598f7d4a510702d193c60af15a0a00f2d39e8202dc9d7d66a51fc67fcf1d893b20e080c6acf2b25610f5e926cfa21"
  ]
}'
Response
Example · 200
"0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060"