Verify Proof
Verify the proof of a transaction in the tree
Code samples
POST /tree/verify-proof
Body parameter
Parameters
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
proof | string(string) | true | none | The proof to be verified |
key | string(string) | true | none | The key associated with the proof |
Example responses
200 Response
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | none | Inline |
Response Schema
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» code | integer(int) | false | none | Error code |
» message | string(string) | false | none | Error message |
» data | object | false | none | Result data |
»» valid | boolean(bool) | false | none | Indicates whether the proof is valid |
»» key | string(string) | false | none | The key associated with the proof |
»» value | object | false | none | none |
»»» txid | string(string) | false | none | Transaction ID |
»»» version | integer(int) | false | none | Transaction version |
»»» locktime | integer(int) | false | none | Transaction locktime |
»»» vin | object | false | none | Transaction inputs |
»»» vout | object | false | none | Transaction outputs |
»»» size | integer(int) | false | none | Transaction size in bytes |
»»» weight | integer(int) | false | none | Transaction weight |
»»» fee | integer(int) | false | none | Transaction fee |
»»» status | object | false | none | none |
»»»» confirmed | boolean(bool) | false | none | Whether the transaction is confirmed |
»»»» block_height | integer(int) | false | none | Block height at which the transaction is included |
»»»» block_hash | string(string) | false | none | Block hash at which the transaction is included |
»»»» block_time | integer(int) | false | none | Time at which the block was mined |
Last updated