# How to get jetton wallet data (https://docs-i0yym09dy-ton-core-docs.vercel.app/llms/standard/tokens/jettons/wallet-data/content.md)



To retrieve the Jetton wallet's account jetton amount, owner identification information, and other details related to a specific Jetton wallet contract, use the `get_wallet_data()` [get method](/llms/foundations/messages/overview/content.md) within the Jetton wallet contract.

This method returns the following data:

| Name                    | Type             | Description                                    |
| ----------------------- | ---------------- | ---------------------------------------------- |
| `balance`               | `VarUInteger 16` | the amount of nano tokens on the Jetton wallet |
| `owner`                 | `MsgAddress`     | the address of owner's regular wallet          |
| `jetton_master_address` | `MsgAddress`     | the address of the Jetton master contract      |
| `jetton_wallet_code`    | `Cell`           | a code of the Jetton wallet                    |

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

```javascript
import { Address, TonClient } from "@ton/ton";

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

  const JettonwalletAddress = Address.parse(
    "EQDmVdCZ2SALvyfCDVlPLr0hoPhUxgjNFtTAxemz9V_C5wbN",
  );

  const data = await client.runMethod(JettonwalletAddress, "get_wallet_data");

  const Stack = data.stack;

    console.log("Balance in nano tokens: ", Stack.readNumber());

    // wallet address
    console.log("Owner: ", Stack.readAddress().toString({ bounceable: false }));

    console.log("Jetton Master address: ", Stack.readAddress().toString());

    // default BoC encoding in viewers
    console.log("Jetton Wallet code: ", Stack.readCell().toBoc().toString('hex'));
}

void main();
```

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

<Image src="/images/tonviewer/get-wallet-data.png" darkSrc="/images/tonviewer/get-wallet-data-dark.png" />

Finally, you can get this information using the [API](https://toncenter.com/api/v3/jetton/wallets).
