# Get Proof

### Retrieve the proof of a transaction in the tree

> Code samples

```javascript

const headers = {
  'Accept':'application/json'
};

fetch('/tree/proof/{txid}',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

```

`GET /tree/proof/{txid}`

#### Parameters <a href="#get__tree_proof_-txid-parameters" id="get__tree_proof_-txid-parameters"></a>

| Name | In   | Type           | Required | Description                                            |
| ---- | ---- | -------------- | -------- | ------------------------------------------------------ |
| txid | path | string(string) | true     | The ID of the transaction for which proof is requested |

> Example responses

> 200 Response

```json
{
  "code": 0,
  "message": "string",
  "data": {
    "value": {
      "txid": "string",
      "version": 0,
      "locktime": 0,
      "vin": [
        {}
      ],
      "vout": [
        {}
      ],
      "size": 0,
      "weight": 0,
      "fee": 0,
      "status": {
        "confirmed": true,
        "block_height": 0,
        "block_hash": "string",
        "block_time": 0
      }
    },
    "proof": "string"
  }
}
```

#### Responses <a href="#get__tree_proof_-txid-responses" id="get__tree_proof_-txid-responses"></a>

| Status | Meaning                                                 | Description | Schema |
| ------ | ------------------------------------------------------- | ----------- | ------ |
| 200    | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | none        | Inline |

#### Response Schema <a href="#get__tree_proof_-txid-responseschema" id="get__tree_proof_-txid-responseschema"></a>

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                                       |
| »» value           | tna-da.api.tree.v1.Transaction | 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            | \[interface]                   | false    | none         | Transaction inputs                                |
| »»» vout           | \[interface]                   | 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         | tna-da.api.tree.v1.Status      | 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                 |
| »» proof           | string(string)                 | false    | none         | The proof for the transaction                     |
