Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Retrieve USDT Balance from TON Mainnet #37

Open
lxxxxxxi opened this issue Jul 22, 2024 · 0 comments
Open

Unable to Retrieve USDT Balance from TON Mainnet #37

lxxxxxxi opened this issue Jul 22, 2024 · 0 comments

Comments

@lxxxxxxi
Copy link

Description

I attempted to retrieve the USDT balance from the TON mainnet using the master contract address EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs. I confirmed that I obtained the correct jetton wallet address. However, I encountered the following error:

async getBalance(provider: ContractProvider) {
    const { stack } = await provider.get("get_wallet_data", []);
    console.log(stack);

    return fromNano(stack.readBigNumber());
}
image

When using the same method to connect to the testnet wallet and the testnet token address, I can successfully retrieve the balance without any errors.

Expected Behavior

The balance should be successfully retrieved from the TON mainnet without any errors, similar to how it works with the testnet.

Actual Behavior

An error occurs when attempting to retrieve the balance from the TON mainnet.

Additional Information

  • The testnet wallet and token address work correctly with the same method.
  • The mainnet setup has been verified to use the correct jetton wallet address.

Environment

  • TON mainnet
  • Master contract address: EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs
  • Relevant code snippet provided

Please let me know if you need any additional information or have any suggestions for troubleshooting this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant