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

How can I get transaction hash after transfer sen ? #517

Open
akegaviar opened this issue Jul 8, 2024 · 0 comments
Open

How can I get transaction hash after transfer sen ? #517

akegaviar opened this issue Jul 8, 2024 · 0 comments

Comments

@akegaviar
Copy link
Owner

// Create a transfer
const seqno: number = await contract.getSeqno();

const transfer = await contract.createTransfer({
		seqno,
		secretKey: keyPair.secretKey,
		messages: [
				internal({
						value: '0.11',
						to: 'EQBVXzBT4lcTA3S7gdrg5hnl5fnsSWj4oNEzNp09aQxkwj1G',
						body: '123456',
				}),
		],
});

const res = await contract.send(transfer);

I tried to decode transfer with transfer.hash().toString('hex');But after sending I compared hashes and they was different.

I thought that I can find it in getTransactions(): Transaction[] data after transfer send. With trying to find it by seqno. Cause I know current seqno and transaction with seqno+1 must be that I need. But I didnt find seqno in getTransactions() items.

How can I get actual hash after transfer send?I use TypeScript ton library.Thank you.

Answer

No answer found


Original

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