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

# View Asset Tree

> This guide will go into detail about querying the asset tree.

## Asset Tree

### Example

```json
{
  "@context": {
    "@vocab": "http://schema.futureverse.com#",
    "schema": "http://schema.org/",
    "fvp": "http://schema.futureverse.com/fvp#",
    "fv": "http://schema.futureverse.com/fv#",
    "tnl": "http://schema.futureverse.com/tnl#"
  },
  "@graph": [
    {
      "@id": "did:fv-asset:1:evm:0x6bca6de2dbdc4e0d41f7273011785ea16ba47182:1211",
      "@type": "tnl:Boxer",
      "fv:equippedWith_brain": {
        "@id": "did:fv-asset:1:evm:0xd0318da435dbce0b347cc6faa330b5a9889e3585:1211"
      },
      "fv:equippedWith_hairStyle": {
        "@id": "did:fv-asset:off-chain:60163ecf-ae7b-4eb5-a78c-31d825322613:2:2"
      },
      "tnl:equippedWith_leftGlove": {
        "@id": "did:fv-asset:7668:10420:2"
      },
      "tnl:equippedWith_rightGlove": {
        "@id": "did:fv-asset:7668:10420:1"
      }
    },
    {
      "@id": "did:fv-asset:1:evm:0xd0318da435dbce0b347cc6faa330b5a9889e3585:1211",
      "@type": "fv:ASMBrain",
      "fv:equippedWith_memory": {
        "@id": "did:fv-asset:off-chain:60163ecf-ae7b-4eb5-a78c-31d825322613:1:10"
      }
    },
    {
      "@id": "did:fv-asset:off-chain:60163ecf-ae7b-4eb5-a78c-31d825322613:1:10",
      "@type": "fv:ASMMemory"
    },
    {
      "@id": "did:fv-asset:off-chain:60163ecf-ae7b-4eb5-a78c-31d825322613:2:2",
      "@type": "tnl:HairStyle"
    },
    {
      "@id": "did:fv-asset:7668:10420:1",
      "@type": "tnl:Glove",
    },
    {
      "@id": "did:fv-asset:7668:10420:2",
      "@type": "tnl:Glove",
    }
  ]
}
```

#### Visualisation

<img src="https://mintlify.s3.us-west-1.amazonaws.com/therootnetwork/images/asset-tree.png" />

## GraphQL Query

```graphql
query GetAssetTree($input: AssetTreeInput!) {
  getAssetTree(input: $input) {
    ... on AssetTreeResultSuccess {
      data
    }
    ... on AssetTreeResultFailure {
      errors {
        message
      }
    }
  }
}
```

```json
{
  "input": {
    "tokenId": "1000",
    "collection": {
      "chainType": "evm",
      "location": "0x6bca6de2dbdc4e0d41f7273011785ea16ba47182",
      "chainId": 1
    }
  }
}
```

Where,

* `tokenId` - The token ID of the NFT you want the asset tree for
* `collection.chainType` - Either `evm` or `root` to specify where the asset lives on The Root Network we have both EVM (`evm`) and native substrate (`root`) storage, so this specifies where to look
* `collection.location` - The location of the NFT, this is either a contract address if the `chainType` is `evm` or a collection ID (number) if the `chainType` is `root`
* `collection.chainId` - The Chain ID of the blockchain the asset lives on
