How can I get transaction hash after transfer sen ?
from No Name

// 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 on TON Overflow

Jan 22, 2024, 3:47 PM
Is it possible to find the answer ?
Thank you🙏
Jan 22, 2024, 5:18 PM

© 2024 Draquery.com All rights reserved.