Hi there! Can you get me some examples for manual transaction, how it composed, how generate payload, for simple transfer nft from my to another wallet? Or reading about.

Dec 27, 2022, 4:17 AM
I googled much times and not found answer
This is example of external service with params for transfering with tonkeeper:

"params": {
"source": "owner wallet",
"valid_until":1672111633,
"messages": [{
"address":"nft address",
"amount":"68568779", // strange amount, how it calculates?
"payload":"te6cckEBAQEAVQAApV/MPRQAAAAAAAAAAIAJbHMqtRChqxPdhONruHmDbIW0234234234234/JKIkpbAB1yAyuxOOygw/zFrDV0iSDZdyS0uM+sadfaAFSDFasdfd45rsdfa==" // what is it? How it generates?
}]
}
But how to make same transaction, calculate values for sending with toncenter/tonweb library?
Dec 27, 2022, 4:23 AM
you can checkout the fift wallet code … but reading fift is a bit hard

or you can go over the ton (npm) library
and view the wallet create transfer method
https://github.com/orbs-network/single-nominator/blob/main/test/e2e.ts
checkout line 115
Dec 27, 2022, 4:26 AM
Thank you!
I read code, but even not sure that is about NFT transfer… Isn’t there even one example of anyone? It’s just common case of NFT transfer…
Please anybody, help
Maybe exist approach how to understand of standard NFT contract works. It’s same approach for erc NFT on ton and solidity networks or different?
Dec 27, 2022, 7:09 AM
you can checkout tonweb examples
Dec 27, 2022, 9:57 AM
I just need only two cases - mint standard ton nft and transfer them to another owner
I need do it with node.js script
with javascript api
Dec 27, 2022, 9:59 AM
1sec
https://github.com/toncenter/tonweb/blob/master/src/test-nft.js
good luck
Dec 27, 2022, 10:01 AM
I understand correctly? I think that I need create mounted contract of nft that I want interact, then call that methods for transfer and mint? I'm wondered - how call contract method was transformered to
"messages": [{
"address":"EQBU5XFJ871oiBjmmSmbQQOlbPMIIltkHhiPfz-asdfasdfads",
"amount":"68568779",
"payload":"te6cckEVAQEAVQAApV/MPRQAAAAAAAAAAIAJbHMqtRChqxPdhONruHmDbIW0z3ZYxjklMLG/JKIkpbAB1yAyuxOOygw/zFrDV0iSDZdyS0uM+B8PnIa1X5PONehzEtAIjPgFiB=="
}]
}
How appear payload? What that means?
And also in https://github.com/toncenter/tonweb/blob/master/src/test-nft.js - using local contract files, but I need to use already mounted contract (nft in mainnet)...
Thus, another question, how I can get
const {NftItem} = require("./contract/token/nft/NftItem");
file of already mounted contract (of nft) ?
Dec 27, 2022, 10:12 AM

© 2024 Draquery.com All rights reserved.