[Transaction] klay_sendRawTransactions
Send multiple signed RLP-encoded transactions. It can be useful when an RLP endpoint is actually load-balancing to multiple nodes, and the user needs to make sure that multiple transactions are sent to the same node. Important when you send KIP-245 bundled transactions.
NOTE: If you deployed a contract, use klay_getTransactionReceipt to get the contract address.
JSONRPC: klay_sendRawTransactions
Request
- application/json
Body
Signed transactions data.
Responses
- 200
Returns the array of transaction hashes.
- application/json
- Schema
- Example (from schema)
Schema
error
object
A Number that indicates the error type that occurred. This MUST be an integer.
code | message | description |
---|---|---|
-32700 | Parse error | invalid JSON was received by the server. An error occurred on the server while parsing the JSON text. |
-32602 | Invalid params | Invalid method parameter(s). |
A String providing a short description of the error. The message SHOULD be limited to a concise single sentence.
A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.).
Returns the array of transaction hashes.
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": [
"0x6f2b444a031f5932d013abbaead8d6058832b4f23c8dcad65f482295f87ab11c",
"0xf66f892efee21847b3686d325234f15e7de0bdde38d607493bda2ae0767e10e3"
]
}