-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Here is my transaction detail in the mainnet:
https://dex.binance.org/api/v1/tx/16908395AE595CB6D3E33F857A7E1934F3A0BD7F920F73AE90232DB5A959AB0C?format=json
As you can see, the memo is:
"data": null,
"memo": "AVA_D_021189",
But, when I tried to decode raw tx above, it is:
3gHwYl3uClgqLIf6CigKFMm3DGlwDnrl8oUv/XuUcGS9pSBjEhAKB0FWQS02NDUQgICz/8QDEigKFEVc1zZPMVGEI/wwNXGZG6jdXLDSEhAKB0FWQS02NDUQgICz/8QDEm4KJuta6YchA5DMmRpyXoWfDeEKwECe+PVqqKEJHWQmGMhNou4rSireEkBccrwLsoJk8uNcl7GTVGhdwGdeyjugUfLnU1UeWoKJYT8D3LDWt2N6BU7yKadlWvJ/Lsh44xMJl3oXWS9m1LzXGJecFBoMQVZBX0RfMDIxMTg5IAI=
And here is the response after decode:
memo: '',
source: 0,
data: '',
msgType: 'StdTx' }
@antoncoding do you have any information about it?
Here is my source code:
const bytes = Buffer.from(rawData, 'base64');
// currently only supported transfer type
try {
const tx = bnbDecoder.decode(bytes.toString('hex'), config.network === 'testnet');
console.log(`tx=========`, tx);
return tx;
} catch (err) {
// if error, it mean it maybe not transfer tx
return null;
}
Metadata
Metadata
Assignees
Labels
No labels