> ## Documentation Index
> Fetch the complete documentation index at: https://companyname-a7d5b98e-cex-integration-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# How to get supply data

export const Image = ({src, darkSrc, alt = "", darkAlt, href, target}) => {
  const isSVG = src.match(/\.svg(?:[#?].*?)?$/i) !== null;
  const shouldInvert = isSVG && !darkSrc;
  const shouldCreateLink = href !== undefined;
  if (shouldCreateLink) {
    return <a href={href} target={target ?? "_self"}>
        <img className="block dark:hidden" src={src} alt={alt} noZoom />
        <img className={`hidden dark:block ${shouldInvert ? "invert" : ""}`} src={darkSrc ?? src} alt={darkAlt ?? alt} noZoom />
      </a>;
  }
  return <>
      <img className="block dark:hidden" src={src} alt={alt} />
      {shouldInvert ? <img className="hidden dark:block invert" src={darkSrc ?? src} alt={darkAlt ?? alt} noZoom /> : <img className="hidden dark:block" src={darkSrc ?? src} alt={darkAlt ?? alt} />}
    </>;
};

To retrieve specific Jetton data, use Jetton master contract's `get_jetton_data()` method.

This method returns the following data:

| Name                 | Type             | Description                                                                                                               |
| -------------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------- |
| `total_supply`       | `VarUInteger 16` | the total number of issued jettons measured in indivisible units                                                          |
| `mintable`           | `Bool`           | Indicates whether new jettons can be minted (-1 for true, 0 for false)                                                    |
| `admin_address`      | `Address`        | admin's address                                                                                                           |
| `jetton_content`     | `Cell`           | data formatted according to [TEP-64](https://github.com/ton-blockchain/TEPs/blob/master/text/0064-token-data-standard.md) |
| `jetton_wallet_code` | `Cell`           | a code of the corresponding Jetton wallet                                                                                 |

You can call the `get_jetton_data()` method from your favorite IDE:

```javascript theme={null}
import { TonClient, Address } from "@ton/ton"

async function main() {
    const client = new TonClient({
    endpoint: 'https://toncenter.com/api/v2/jsonRPC',
    });

    const JettonMasterAddress = Address
    .parse('0:b113a994b5024a16719f69139328eb759596c38a25f59028b146fecdc3621dfe');

    const data = await client.runMethod(JettonMasterAddress,
    'get_jetton_data');

    const Stack = data.stack;

    console.log(Stack.readNumber()); // Total supply

    console.log(Stack.readNumber()); // mintable

    console.log(Stack.readAddress().toString()); // Admin address

    console.log(Stack.readCell()); // jetton_content

    console.log(Stack.readCell()) // jetton_wallet_code
}

void main();
```

Or call it through a web service, such as [Tonviewer](https://tonviewer.com/EQDmVdCZ2SALvyfCDVlPLr0hoPhUxgjNFtTAxemz9V_C5wbN?section=method):

<Image src="/resources/images/tonviewer/jetton-data.png" darkSrc="/resources/images/tonviewer/jetton-data-dark.png" />

Finally, you can get this information using the [API](/ecosystem/rpc/overview.mdx).
