Show amount but the hex string in rawTx is not amount, but has been converted to another hex #334
Unanswered
Sotatek-ToanTran
asked this question in
Q&A
Replies: 1 comment 3 replies
-
There is no any encoding method in these codes. const buffer = Buffer.from("00e1f50500000000", "hex");
const lamports = buffer.readBigUInt64LE(0);
console.log(lamports); // 100000000n |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Show amount but the hex string in rawTx is not amount, but has been converted to another hex
We understand that "amount hex" feeds into singing tools and uses the showAmount() function to display the amount on the card.
But in Solana, Solana's hex amount has been modified by some function, so when displayed it will no longer be correct.
Example:
Can we use some function inside signin tools to do this below transformation? We need to change the tag to display the correct amount?
No screenshots.
Beta Was this translation helpful? Give feedback.
All reactions