How are transaction hashes structured in the new format? #97
Unanswered
devendran-m
asked this question in
Q&A
Replies: 1 comment
-
Transactions are grouped by keys/categories under
P.S. - Answer / Explanation based on the details shared by @rafal-ch in a Slack conversation. Response format: {
"transactions": {
"0": [
{ "Deploy": "hash1" },
{ "Deploy": "hash2" }
]
}
} Example response for a {
"jsonrpc": "2.0",
"id": 1,
"result": {
"api_version": "2.0.0",
"block_with_signatures": {
"block": {
"Version2": {
"hash": "4e1e54840377c2be91edfa23b83ed4c06fecebedc7261a831fe57be8a23a9459",
"header": {
"parent_hash": "6d3f871b56eb1ba7384a190b055544f6433a68e4a5f8c4392cedc7b41b6b1a6c",
"state_root_hash": "f271a36c2542ca908b22b3958bc3f54a26ed3130a6f79abef0e69596a441b5eb",
"body_hash": "e53de8f124acd93bca3883b26962b59bb8eadab90e3c16c05bab839125ecc4b4",
"random_bit": true,
"accumulated_seed": "4cbbe9da6bf15dcb988ce007363902d8307443cfc838ea3e3c0be81978250109",
"era_end": null,
"timestamp": "2024-07-10T02:51:19.049Z",
"era_id": 234,
"height": 102667,
"protocol_version": "2.0.1",
"proposer": "0126d4637eb0c0769274f03a696df1112383fa621c9f73f57af4c5c0fbadafa8cf",
"current_gas_price": 1,
"last_switch_block_hash": "3fe6e0469c3676219c72f63a074351af3269849e7d9b8dabe110be5973ef1ed1"
},
"body": {
"transactions": {
"3": [
{
"Deploy": "9507babe29aa09dac0707be2a5738325edd843e08f21871afc1ff8d3c38f948c"
}
]
},
"rewarded_signatures": [
[
240
],
[
0
],
[
0
]
]
}
}
},
"proofs": [
{
"public_key": "01032146b0b9de01e26aaec7b0d1769920de94681dbd432c3530bfe591752ded6c",
"signature": "01fb3d62baeb0b2c3b198fb0f84123bbb6dc93fb71eb712edf93476f5ae170bb05f52c59cb2556ecda1acede62a20401f4229edfdce72df23905307074518cee0f"
},
{
"public_key": "0126d4637eb0c0769274f03a696df1112383fa621c9f73f57af4c5c0fbadafa8cf",
"signature": "01382cbe0ae6c276fbfe08f59974b6dc11f3592f1724bd336dd0c52b649c75d8f598b70b7513021d39e8c65e544bdd751a4683afffeb7a15df56ffcf256e5d8c0a"
},
{
"public_key": "0140afe8f752e5ff100e0189c080bc207e8805b3e5e82f792ec608de2f11f39f6c",
"signature": "012d8754068d9be76164c40543e6ad3fdbbf2e72a67bdcb84796810d13397475d5a8f878b41aa7e7ca574ef69c28071f0fe43094c1d0d7823c0526b31aa84a010e"
},
{
"public_key": "017536433a73f7562526f3e9fcb8d720428ae2d28788a9909f3c6f637a9d848a4b",
"signature": "016b62d821d08bfbe0fb0d80f6914fd44662e28241e0379649c8070a359628e3c58b21c839396261eabb7b5b0af315885d01b02f24a99f8741425787a3f067e905"
}
]
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How are transaction hashes structured in the new format and how can I identify it, for instance in the JSON RPC response of
chain_get_block
?Beta Was this translation helpful? Give feedback.
All reactions