Skip to content
Snippets Groups Projects
Commit 0ee8911d authored by Mansoor's avatar Mansoor
Browse files

Updated GetData return value descriptor


Used a JSON returned via RPC to understand the structure of returned object.

Signed-off-by: default avatarMansoor Ahmed <mansoor.ahmed@cl.cam.ac.uk>
parent 6f779c82
No related branches found
No related tags found
No related merge requests found
...@@ -984,23 +984,57 @@ Parameter: ...@@ -984,23 +984,57 @@ Parameter:
chain_id: <string> chain_id: <string>
height: <number> height: <number>
time: <string> time: <string>
fees: <number>
num_txs: <number> num_txs: <number>
last_block_hash: <string> last_block_id: {
last_block_parts: { hash: <string>
total: <number> parts: {
hash: <string> total: <int>
hash: <string>
}
} }
state_hash: <string> last_commit_hash: <string>
} data_hash: <string>
validation: { validators_hast: <string>
commits: [<Commit>] app_hash: <string>
TODO those other two.
} }
data: { data: {
txs: [<Tx>] txs: [<Tx>]
TODO that other field.
} }
last_commit: {
blockID: {
hash: <string>
parts: {
total: <int>
hash: <string>
}
}
precommits: {
validator_address: <string>
validator_index: <int>
height: <int>
round: <int>
type: <int>
block_id: {
hash: <string>
parts: {
total: <int>
hash: <string>
}
}
signature: [<signature>]
}
}
id: <string>
jsonrpc: <string>
}
```
The `Signature` object:
```
{
index: <int>
signature: <string>
} }
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment