Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
How can I get transaction hash after transfer sen ?

// 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.

  
  
Posted 6 months ago
Votes Newest

Answers

5K Views
1 Answer
6 months ago
2 months ago
Tags