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

Error: Unable to execute get method. Got exit_code: -13 #66

Open
Jobians opened this issue Oct 9, 2024 · 0 comments
Open

Error: Unable to execute get method. Got exit_code: -13 #66

Jobians opened this issue Oct 9, 2024 · 0 comments

Comments

@Jobians
Copy link

Jobians commented Oct 9, 2024

async function getUserJettonWalletAddress(userAddress, jettonMasterAddress) {
  const client = await initializeClient(NETWORK);
  const userAddressCell = beginCell().storeAddress(Address.parse(userAddress)).endCell();

  const response = await client.runMethod(jettonMasterAddress, 'get_wallet_address', [
    { type: 'slice', cell: userAddressCell },
  ]);

  return response.stack.readAddress();
}

/root/ton-monitor/node_modules/.pnpm/@ton+ton@15.0.0_@ton+core@0.58.1_@ton+crypto@3.3.0__@ton[email protected]/node_modules/@ton/ton/dist/client/TonClient.js:42 throw Error('Unable to execute get method. Got exit_code: ' + res.exit_code); ^ Error: Unable to execute get method. Got exit_code: -13 at TonClient.runMethod (/root/ton-monitor/node_modules/.pnpm/@ton+ton@15.0.0_@ton+core@0.58.1_@ton+crypto@3.3.0__@ton[email protected]/node_modules/@ton/ton/dist/client/TonClient.js:42:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async getUserJettonWalletAddress (/root/ton-monitor/app.js:31:20)

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