[Transaction] kaia_getDecodedAnchoringTransactionByHash
Returns the decoded anchored data in the transaction for the given transaction hash.
JSONRPC: kaia_getDecodedAnchoringTransactionByHash
Request
- application/json
Body
Hash of a transaction.
Responses
- 200
Returns the decoded anchored data in the transaction for the given transaction hash.
- 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.).
result
object
Hash of the child chain block that this anchoring transaction was performed.
The child chain block number that this anchoring transaction was performed.
Hash of the parent block.
The root of the transaction trie of the block.
The root of the final state trie of the block.
The root of the receipts trie of the block.
The number of blocks generated during this anchoring period. In most cases, this number is equal to the child chain's SC_TX_PERIOD, with the exception of the case that this transaction was the first anchoring tx after turning on the anchoring.
The number of transactions generated in the child chain during this anchoring period.
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": {
"BlockCount": 1,
"BlockHash": "0xcf5f591836d70a1da8e6bb8e5b2c5739329ca0e535b91e239b332af2e1b7f1f4",
"BlockNumber": 1055,
"ParentHash": "0x70f6115a5b597f29791d3b5e3f129df54778f69ae669842cc81ec8c432fee37c",
"ReceiptHash": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"StateRootHash": "0x654773348f77a6788c76c93946340323c9b39399d0aa173f6b23fe082848d056",
"TxCount": 0,
"TxHash": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"
}
}