> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# getAssetProof

> Returns a Merkle proof for a compressed asset given its ID. Required for operations like transferring compressed NFTs.

### Parameters

<ParamField query="chainId" type="string" default="solana-devnet" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="getAssetProof" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={{"id":"Bu1DEKeawy7txbnCEJE4BU3BKLXaNAKCYcHR4XhndGss"}} placeholder="{&#x22;id&#x22;:&#x22;Bu1DEKeawy7txbnCEJE4BU3BKLXaNAKCYcHR4XhndGss&#x22;}">
  Request parameters for retrieving asset proof.

  Parameters for <code>getAssetProof</code>:

  <ul>
    <li><code>params.id</code>: The ID of the compressed asset.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  Merkle proof data for the given asset.

  <Expandable title="properties">
    <ResponseField name="root" type="string">
      Root hash of the Merkle tree.
    </ResponseField>

    <ResponseField name="proof" type="array">
      Merkle proof consisting of a list of sibling hashes.

      <Expandable title="items">
        <ResponseField name="items[]" type="array">
          Each proof level as a list of sibling hashes.

          <Expandable title="items">
            <ResponseField name="items[]" type="string" />
          </Expandable>
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="node_index" type="integer">
      The index of the node in the tree.
    </ResponseField>

    <ResponseField name="leaf" type="string">
      The Merkle leaf corresponding to the asset.
    </ResponseField>

    <ResponseField name="tree_id" type="string">
      The tree ID where the asset resides.
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=solana-devnet \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "getAssetProof",
      "params": {
        "id": "Bu1DEKeawy7txbnCEJE4BU3BKLXaNAKCYcHR4XhndGss"
      }
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
      "root": "2o6Y6EiY3WXhoaEpei2pHmHLYnHDcEQVhgD89GrGHDBH",
      "proof": [
        [
          "EmJXiXEAhEN3FfNQtBa5hwR8LC5kHvdLsaGCoERosZjK",
          "7NEfhcNPAwbw3L87fjsPqTz2fQdd1CjoLE138SD58FDQ",
          "6dM3VyeQoYkRFZ74G53EwvUPbQC6LsMZge6c7S1Ds4ks",
          "A9AACJ5m7UtaVz4HxzhDxGjYaY88rc2XPoFvnoTvgYBj",
          "..."
        ]
      ],
      "node_index": 16384,
      "leaf": "6YdZXw49M97mfFTwgQb6kxM2c6eqZkHSaW9XhhoZXtzv",
      "tree_id": "2kuTFCcjbV22wvUmtmgsFR7cas7eZUzAu96jzJUvUcb7"
    }
  }
  ```
</ResponseExample>
