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 to get jetton transfer payload info? #88

Open
lincoln-king opened this issue Dec 4, 2024 · 1 comment
Open

How to get jetton transfer payload info? #88

lincoln-king opened this issue Dec 4, 2024 · 1 comment

Comments

@lincoln-king
Copy link

i have a transaction on testnet(https://testnet.tonviewer.com/transaction/94a02b3b586bd0fd797253171c3b55ccdc9c5faaf864218da77292df2e32b926)
how can i get the payload info like tonviewer showed?
payload:
query_id: 1732864513
amount: "4321123400"
from: 0:5a92390922337048c5b12b594c63d49a9c334b1a1eeb81bb1170bba4cbf731ea
response_address: 0:5a92390922337048c5b12b594c63d49a9c334b1a1eeb81bb1170bba4cbf731ea
forward_ton_amount: "1"
forward_payload:
is_right: true
value:
sum_type: TextComment
op_code: 0
value:
text: x xxxx

i get transaction info from toncenter v3 api,whice base64 content is the cell of payload?which java cell type i can use to deserialize?
{
"ok": true,
"result": {
"@type": "blocks.transactionsExt",
"id": {
"@type": "ton.blockIdExt",
"workchain": 0,
"shard": "2305843009213693952",
"seqno": 27182957,
"root_hash": "8hp/6uTrX3KT2LLEzIYipGWblCRa9DcBsMiivgd7WoU=",
"file_hash": "r6a9VDBJxcNiWELKcCF+JrIWJ4JXPJbDVihNyY/FhO4="
},
"req_count": 40,
"incomplete": false,
"transactions": [
{
"@type": "raw.transaction",
"address": {
"@type": "accountAddress",
"account_address": "EQAmwHvtIWjZx8E-rv6JlkA3JJboYqL02t3ybwaT-kJzZywy"
},
"utime": 1732864529,
"data": "te6cckECIgEABngAA7VybAe+0haNnHwT6u/omWQDckluhiovTa3fJvBpP6QnNnAAAZ7ntTy4EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZ0lqEQAFxoVdnoAQIDAgHgBAUAgnKQrsiWWvq7FuvDy5tAjrrnG2GNe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"fee": "5091200",
"storage_fee": "0",
"other_fee": "5091200",
"in_msg": {
"@type": "raw.message",
"source": {
"@type": "accountAddress",
"account_address": "EQCUbrL0PfzxDDTA2gL4FFS0bWCNsjmUzse1n6pM1ByWJ4L7"
},
"destination": {
"@type": "accountAddress",
"account_address": "EQAmwHvtIWjZx8E-rv6JlkA3JJboYqL02t3ybwaT-kJzZywy"
},
"value": "92359600",
"fwd_fee": "2772022",
"ihr_fee": "0",
"created_lt": "28512059000002",
"body_hash": "kWgWeHRWW9CG5SDzo3pkR2KlClaUuUJMfQab2EochDM=",
"msg_data": {
"@type": "msg.dataRaw",
"body": "te6cckEBAgEAZwABqxeNRRkAAAAAZ0lqAVAQGPHEiAC1JHISRGbgkYtiVrKYx6k1OGaWND3XA3Yi4XdJl+5j1QAWpI5CSIzcEjFsStZTGPUmpwzSxoe64G7EXC7pMv3MeoQHAQAYAAAAAHjigIZ4eHh4PaPX/A==",
"init_state": "te6cckECEwEAA28AAgE0AgEBhwgBu0h5R0C3+wrg5krIU9shqVOxUDoTcF0g4/a7OtjIY6UAD9ji8eaCsHwF0jmhny4Os/upLMncSZ4GDq58e0ZiE2cgAgEU/wD0pBP0vPLICwMCAWIEBQICzAYHABug9gXaiaH0AfSB9IGoYQIB1AgJAgEgCgsAwwgxwCSXwTgAdDTAwFxsJUTXwPwDOD6QPpAMfoAMXHXIfoAMfoAMHOptAAC0x+CEA+KfqVSILqVMTRZ8AngghAXjUUZUiC6ljFERAPwCuA1ghBZXwe8upNZ8AvgXwSED/LwgABE+kQwcLry4U2ACASAMDQCD1AEGuQ9qJofQB9IH0gahgCaY/BCAvGooypEF1BCD3uy+8J3QlY+XFi6Z+Y/QAYCdAoEeQoAn0BLGeLAOeLZmT2qkAfFQPTP/oA+kAh8AHtRND6APpA+kDUMFE2oVIqxwXy4sEowv/y4sJUNEJwVCATVBQDyFAE+gJYzxYBzxbMySLIywES9AD0AMsAySD5AHB0yMsCygfL/8nQBPpA9AQx+gAg10nCAPLixHeAGMjLBVAIzxZw+gIXy2sTzIDgIBIA8QAJ6CEBeNRRnIyx8Zyz9QB/oCIs8WUAbPFiX6AlADzxbJUAXMI5FykXHiUAioE6CCCcnDgKAUvPLixQTJgED7ABAjyFAE+gJYzxYBzxbMye1UAvc7UTQ+gD6QPpA1DAI0z/6AFFRoAX6QPpAU1vHBVRzbXBUIBNUFAPIUAT6AljPFgHPFszJIsjLARL0APQAywDJ+QBwdMjLAsoHy//J0FANxwUcsfLiwwr6AFGooYIImJaAZrYIoYIImJaAoBihJ5cQSRA4N18E4w0l1wsBgERIA1ztRND6APpA+kDUMAfTP/oA+kAwUVGhUknHBfLiwSfC//LiwgWCCTEtAKAWvPLiw4IQe92X3sjLHxXLP1AD+gIizxYBzxbJcYAYyMsFJM8WcPoCy2rMyYBA+wBAE8hQBPoCWM8WAc8WzMntVIABwUnmgGKGCEHNi0JzIyx9SMMs/WPoCUAfPFlAHzxbJcYAQyMsFJM8WUAb6AhXLahTMyXH7ABAkECMAfMMAI8IAsI4hghDVMnbbcIAQyMsFUAjPFlAE+gIWy2oSyx8Syz/JcvsAkzVsIeIDyFAE+gJYzxYBzxbMye1UnNtMlQ=="
}
},
"out_msgs": [
{
"@type": "raw.message",
"source": {
"@type": "accountAddress",
"account_address": "EQAmwHvtIWjZx8E-rv6JlkA3JJboYqL02t3ybwaT-kJzZywy"
},
"destination": {
"@type": "accountAddress",
"account_address": "EQDdpDyjoFv9hXBzJWQp7ZDUqdioHQm4LpBx-12dbGQx0jSf"
},
"value": "1",
"fwd_fee": "454404",
"ihr_fee": "0",
"created_lt": "28512062000002",
"body_hash": "qPJgq0g27q9uoKhb3LNJv+dzWlThP55kbe+FxIBZ0L4=",
"msg_data": {
"@type": "msg.dataRaw",
"body": "te6cckEBAgEARAABZnNi0JwAAAAAZ0lqAVAQGPHEiAC1JHISRGbgkYtiVrKYx6k1OGaWND3XA3Yi4XdJl+5j1QEAGAAAAAB44oCGeHh4eLA1Gpk=",
"init_state": ""
}
},
{
"@type": "raw.message",
"source": {
"@type": "accountAddress",
"account_address": "EQAmwHvtIWjZx8E-rv6JlkA3JJboYqL02t3ybwaT-kJzZywy"
},
"destination": {
"@type": "accountAddress",
"account_address": "EQBakjkJIjNwSMWxK1lMY9SanDNLGh7rgbsRcLuky_cx6hVP"
},
"value": "67801566",
"fwd_fee": "266669",
"ihr_fee": "0",
"created_lt": "28512062000003",
"body_hash": "4VwYPwV6Iirnsx+g1LBrk+E35ag33MpRXMIJaw5PWNQ=",
"msg_data": {
"@type": "msg.dataRaw",
"body": "te6cckEBAQEADgAAGNUydtsAAAAAZ0lqAWBLyCs=",
"init_state": ""
}
}
],
"account": "0:26c07bed2168d9c7c13eaefe899640372496e862a2f4daddf26f0693fa427367"
}
],
"@extra": "1733254066.726413:11:0.027262574924512117"
}
}

@h6x0r
Copy link

h6x0r commented Dec 6, 2024

@lincoln-king In case you couldn't find any solution, you may use the following library https://github.com/h6x0r/tonapi4j, this test retrieves specifically what you are looking for—just FYI. Hope it was helpful

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

2 participants