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

# getAssetProof DAS Method

> Get the Merkle proof for a Solana compressed NFT to transfer, burn or update it with Bubblegum. getAssetProof parameters and examples.

Pass the compressed NFT's asset id as `id`. The response holds the current `root`, the `leaf` hash, the `tree_id`, the leaf's `node_index` and the `proof` path.

* Accepted method names: `getAssetProof` and `get_asset_proof`.
* `proof` lists one sibling hash per tree level, from the leaf level up to just below the root. The full path is returned; drop the entries the tree's canopy already stores before you add them to a transaction.
* An id that is not a compressed NFT, or whose tree is not yet fully indexed, returns `-32000` with `RecordNotFound Error: Asset Proof Not Found`. A proof is only returned when its path leads to the recorded root.
* Proofs change whenever any leaf in the same tree changes. Fetch the proof right before you build the transaction.
* Cost: 1 credit. Counts against your plan's DAS RPS limit.

To fetch many proofs at once, use [getAssetProofs](https://docs.solanatracker.io/solana-rpc/http/getassetproofs.md). See the [DAS API overview](https://docs.solanatracker.io/solana-rpc/das-api.md).

Request setup and error handling: [RPC quickstart](https://docs.solanatracker.io/solana-rpc/quickstart.md). Billing: [credits and limits](https://docs.solanatracker.io/solana-rpc/credits-and-rate-limits.md).


## OpenAPI

````yaml getassetproof post /
openapi: 3.1.0
info:
  title: Solana RPC
  version: 1.0.0
  description: Solana RPC HTTP method reference.
servers:
  - url: https://rpc-mainnet.solanatracker.io
    description: Mainnet RPC endpoint
security: []
paths:
  /:
    post:
      summary: getAssetProof
      description: >-
        Get the Merkle proof for a compressed NFT, ready to pass to Bubblegum
        instructions. Accepts `getAssetProof` and `get_asset_proof`.
      operationId: getassetproof
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  allOf:
                    - type: string
                      description: The JSON-RPC protocol version.
                      enum:
                        - '2.0'
                      example: '2.0'
                id:
                  allOf:
                    - type: string
                      description: A unique identifier for the request.
                      example: '1'
                method:
                  allOf:
                    - type: string
                      description: The name of the RPC method to invoke.
                      enum:
                        - getAssetProof
                      example: getAssetProof
                params:
                  allOf:
                    - type: object
                      description: Named parameters.
                      required:
                        - id
                      properties:
                        id:
                          type: string
                          description: Compressed NFT asset id.
                          example: Bu1DEKeawy7txbnCEJE4BU3BKLXaNAKCYcHR4XhndGss
              required:
                - jsonrpc
                - id
                - method
                - params
            examples:
              basic:
                summary: Get a proof
                value:
                  jsonrpc: '2.0'
                  id: '1'
                  method: getAssetProof
                  params:
                    id: Bu1DEKeawy7txbnCEJE4BU3BKLXaNAKCYcHR4XhndGss
      responses:
        '200':
          description: The proof.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        description: The JSON-RPC protocol version.
                        enum:
                          - '2.0'
                        example: '2.0'
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                  result:
                    allOf:
                      - $ref: '#/components/schemas/AssetProof'
              examples:
                proof:
                  summary: Proof for a depth-14 tree
                  value:
                    jsonrpc: '2.0'
                    id: '1'
                    result:
                      root: 5rMQrAzDE7zUqB8WQoE1GbNQdWu47yZ3Y5qiHEYrTDhs
                      proof:
                        - Bnznh2FK62mukjRVhCn3UikGafn2jHXxLvT5xGM2ZD35
                        - Ebp7crC92YXamejQn6yz5HytwG51yP9LQBQNgpAayzbb
                        - 2Tgacv5YTTQHfthZitxphZZPCuALtAjt4JzZcg3y6CMH
                        - 4zi9eu47ytCDca7v9NvA58pZCWnpusDDi2i2HSzrMPsJ
                        - FBaCTNTo9mWmc1gKQo1rgj9LQ9eQxpsY54MGL7DUQqar
                        - 3QJGEkEzHoJuRbQwMBZWyWh5pidNLHNmdvDBftbE2kVL
                        - AZtuLFe24dXj5g4CSQ6X1nTnBsJdgtEem8Z7pC4ytdAG
                        - BVXHCgXTcLAmRaPXpicVjJiNsKKT8eKuEP4r3nxwc1cz
                        - EuHWZivHwrwDZMTEVXBRzSDAw9NnAAdfCcN9MK9sDyYS
                        - 33z2njBZCtEbpHTNzTzbFfvjX3U4JrGm7QYSoPr5tvcF
                        - BXJosP5Vwf8ydnXnHjtvwhypmvxLbF9EMpVcuAifYeDB
                        - 41X2rWXqpqpJXd8fjntnyRJRyPsmfEvGPntth2Le2Bex
                        - 7cRqjH5sYVnkHDJtPVUBmC6QWwYNstyFkrNFqDQNfjL9
                        - 58kqiwci5NvjyzCm6MKcYtwPgWLPZePLv1zxDLgM7Fzw
                      node_index: 21105
                      leaf: Bjt94wy4oBk5xgbAuAXKvn5n571Vj6bk5aU76qpRi1ht
                      tree_id: FrAzKzPRe6DfhkfMiPQxdDwuMJbBxPqQexNsqhedni9f
                      last_indexed_slot: 386264187
        '400':
          description: Bad Request - Invalid request parameters or malformed request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        description: The JSON-RPC protocol version.
                        enum:
                          - '2.0'
                        example: '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                            description: The error code.
                            example: -32602
                          message:
                            type: string
                            description: The error message.
                          data:
                            type: object
                            description: Additional data about the error.
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32602
                      message: 'Pubkey Validation Err: not-a-key is invalid'
                    id: 1
        '401':
          description: Unauthorized - Invalid or missing API key.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        description: The JSON-RPC protocol version.
                        enum:
                          - '2.0'
                        example: '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                            description: The error code.
                            example: -32602
                          message:
                            type: string
                            description: The error message.
                          data:
                            type: object
                            description: Additional data about the error.
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32001
                      message: Unauthorized
                    id: 1
        '429':
          description: Too Many Requests - Rate limit exceeded.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        description: The JSON-RPC protocol version.
                        enum:
                          - '2.0'
                        example: '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                            description: The error code.
                            example: -32602
                          message:
                            type: string
                            description: The error message.
                          data:
                            type: object
                            description: Additional data about the error.
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32005
                      message: Too many requests
                    id: 1
        '500':
          description: Internal Server Error - An error occurred on the server.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        description: The JSON-RPC protocol version.
                        enum:
                          - '2.0'
                        example: '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                            description: The error code.
                            example: -32602
                          message:
                            type: string
                            description: The error message.
                          data:
                            type: object
                            description: Additional data about the error.
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32603
                      message: Internal error
                    id: 1
        '503':
          description: Service Unavailable - The service is temporarily unavailable.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        description: The JSON-RPC protocol version.
                        enum:
                          - '2.0'
                        example: '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                            description: The error code.
                            example: -32602
                          message:
                            type: string
                            description: The error message.
                          data:
                            type: object
                            description: Additional data about the error.
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32002
                      message: Service unavailable
                    id: 1
        '504':
          description: Gateway Timeout - The request timed out.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        description: The JSON-RPC protocol version.
                        enum:
                          - '2.0'
                        example: '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                            description: The error code.
                            example: -32602
                          message:
                            type: string
                            description: The error message.
                          data:
                            type: object
                            description: Additional data about the error.
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32003
                      message: Gateway timeout
                    id: 1
      security:
        - ApiKeyQuery: []
components:
  schemas:
    AssetProof:
      type: object
      description: Merkle proof for a compressed NFT leaf.
      properties:
        root:
          type: string
          description: Current tree root.
        proof:
          type: array
          description: >-
            Sibling hashes from the leaf level up to just below the root, one
            per tree level. The full path is returned; trim the tree's canopy
            yourself when building a transaction.
          items:
            type: string
        node_index:
          type: integer
          description: 'Index of the leaf node in the tree: `2^depth + leaf_id`.'
          example: 21105
        leaf:
          type: string
          description: Current leaf hash.
        tree_id:
          type: string
          description: Merkle tree address.
        last_indexed_slot:
          type: integer
          description: Slot of the data the response was read from.
          example: 386264187
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.