state_getTransactionProof
Returns the transaction execution proof, if the transaction has been executed. This method can be used to confirm the transaction, but also to get the proof needed as input for other transactions.
Parameters
-
txHash
(string) - Hex encoded transaction hash.params: [
"0xe883f3919c4072e459642a012cf7737cee311da0ade88aa14780484797784cd9"
]
Returns
-
recordAndProof
(object):txRecord
(string) - Hex encoded transaction record.txProof
(string) - Hex encoded transaction proof.
Or null
if the transaction has not been executed.
Example
Request
curl http://127.0.0.1:26866/rpc \
-X POST \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "state_getTransactionProof",
"params": [
"0xe883f3919c4072e459642a012cf7737cee311da0ade88aa14780484797784cd9"
]
}'
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"txRecordProof": "0x82828a03025821573f36e1235c6f284c2f0b7841b874e5260d3dcd0c3e3ad982cb0463ecf10402030384582101020304050607080910010203040506070809100102030405060708091012350118645826830041025820b2c7054c6f335a37c21572665529efb701957d15634591b5540f5ae99d85b3d100f6841902c80a5821bf4bfb2e8179333bf18e7f65bbb0b2001c67c066c6996e195bd1df4039efba0410f6f6815867825841786c20fdfbe978843627a40ff5d05bb229edc148df0b259c7009c88d0fb1b32f1b8b6d900aea7b3633b7a4a27eed0eeebaf456e3604ebb60c52f425e42af5c8b0058210232f4cc357b53b7a532813682a1a408956f11b8157e3a3cb8d9ddb3cf89a866435867825841154bf33b4b0b675b6386f3f6b8cb6aeb22b21a1093d10d004a6adf0dc93fda6145e4a0f056369668d63e2b026dee49b5a1b2a4006ad831822e0555c2f1ea908d0158210232f4cc357b53b7a532813682a1a408956f11b8157e3a3cb8d9ddb3cf89a866438402825821573f36e1235c6f284c2f0b7841b874e5260d3dcd0c3e3ad982cb0463ecf10402035821bf4bfb2e8179333bf18e7f65bbb0b2001c67c066c6996e195bd1df4039efba041001f6d903f184015820cf40059180cd24402f4f828694d1179b8d18a2f0aba74fb527e2b3df7d77c1e480d903ef8401d903f08801582087bd6e7e87933ac08d9dd6a9f60881f39720821f8e2e555321d769c8f66aae3a582095a45514e6f074fa8415f11043f8c835d19e862e770838a3843deedfc20660105820800080d5db4da7deb15e2e26ee1fe333036ac227359ed5053d2d05e2bb4b7ed24800000000000000001902c0000284000282a2634b6579440000000164486173685820e8c69b7612bc6c6384848c5f69fa8338f2496b24f2747056f681bb459bf36535a2634b6579440000000264486173685820dca2c3c76a946ad1090037339a728b03771f4caacb904dfa5a0a8464298f537d58200bdb9a31ae7b111f7913db196b4130864c9f82927f09b7714b4be7fd865c3ea1d903e98601190b2d1a670e92cc582025b4b6ec8cb1bc76283e3174ce31992bc6a8780f08cd75a160c17b5a407d28645820f84e858ff30359e791590f3a1194edc9c20dc89abf4ff1d862ed26b5c81ea6485901728382783531365569753248416d314d6966675a36397446315543645a637848317a6a483833695a48503146316a526a79667a6f5055626a774e584157d78b46db68f27e46f448bbe784fb95bf99243a2dfa38d4a0d83122ac9fc8fb6e4e7b237d9cac22f4536602df4e3f8869d1a311ba9a2aa7926848ea855bc6350182783531365569753248416d4b70376455474b37524a6838395847503250516b6a4a37706e6345596d50694664476958336f4a355278515a58414cdad7917bf1eb1a4e0f557a29d9df4ca8b0fbba8fe66ad20b097020d9daabe326480894329ad912c6efab9a29b3ffe248958d4d8a9f88ef0d1d08d0c3db42ce0182783531365569753248416d4c5064687841793271396661624b654e54726b795731436d695a53747a434a5264546248586942427334764b58416ac77d634e5f4e1dfd29e4969e1001b2229ba50ac39e9da57d2c5d76cf180f2d4b3c5f87228226be6643d6c73e29aca91db15b9afbdf85d8dced73044e875ddb01"
}
}
Or if transaction has not been executed:
{
"jsonrpc": "2.0",
"id": 1,
"result": null
}