---
title: Assets GraphQL API
slug: assets-graphql-api
docTags: 
createdAt: 2024-11-21T11:28:10.051Z
---

## 'Assets

### Simple Example

:::GraphiQL
```json
{
  "endpoint": "https://dton.io/graphql/",
  "query": "query PnlFLow {\n  assets_pnl_flow(\n    user: \"dassets.ton\",\n    asset_address:\"EQD0vdSA_NedR9uvbgN9EikRX-suesDxGeFg69XQMavfLqIw\"\n    from_time: 1747058400\n    to_time: 1748089208\n    interval:DAY_1\n  ) {\n    time\n    time_human\n    balance\n    net_worth\n    estimate_usd\n    avg_estimate_usd\n    realized_in_usd\n    realized_out_usd\n    realized_pnl_usd\n    realized_pnl_percent\n    unrealized_pnl_usd\n    unrealized_pnl_percent\n  } \n}"
}
```
:::

### Single User

```graphql
{
  assets(
    user: "address or domain"
  ) {
    asset_address
    balance
	__typename
    ... on JettonAssetType {
      jetton_wallet_address
      jetton_info {
        symbol
        decimals
        token_type
      }
    }
    ... on StakingAssetType {
      provider
      nft_address
    }
    ... on TonAssetType {
      jetton_info {
        decimals
        estimate_usd
        binary_content {
          icon_view
        }
      }
    }
  }
}
```

### Multiple Users

```graphql
{
  assets(
    users: [
      "address1 or domain1",
      "address2 or domain2"
    ]
  ) {
    asset_address
    balance
    estimate_ton
    estimate_usd
    __typename
    by_user {
      user_address
      balance
    }
    ... on JettonAssetType {
      jetton_wallet_address
      jetton_info {
        symbol
        decimals
        token_type
      }
    }
    ... on StakingAssetType {
      provider
    }
    ... on TonAssetType {
      jetton_info {
        decimals
      }
    }
  }
}
```

***

## Assets Net Worth

### Example

:::GraphiQL
```json
{
  "endpoint": "https://dton.io/graphql",
  "query": "{\n\tassets_net_worth(\n    user: \"lolkekcheburek.ton\"\n    # users: [\"\", \"\"]\n  ) {\n    net_worth_ton\n    net_worth_usd\n  }\n}"
}
```
:::

***

## Assets Token Info

### Simple Example

```graphql
{
  assets_token_info(address: "EQDP4FKs4AqothucWAPdHJfsntegHdknrwmg8qV9eBVlrWma") {
    name
    symbol
    estimate_usd
    binary_content {
      full_view
    }
  }
}
```

### Get all liquid\_pool tokens

```graphql
{
  assets_token_info(
    token_type: liquid_pool,
    estimate_usd__gt: 0 # Exclude shitcoins,
    page: 0,
    page_size: 50
 ) {
    address
    name
    symbol
    estimate_usd
    pool_info {
      asset0 {
        symbol
      }
      asset1 {
        symbol
      }
    }
  }
}
```

***

## Assets Liquidity Pools

### Simple Example

```graphql
{
  assets_liquidity_pools(pool_address:"0:3E5FFCA8DDFCF36C36C9FF46F31562AAB51B9914845AD6C26CBDE649D58A5588") {
    address
    reserve0
    reserve1
    apr
  }
}
```

