Transfer of NFT tokens. I need to send NFT tokens using web JS.
I will be able to send coins using this code.
But I can't find anything like this for sending nft tokens
EOS.IO Stack Exchange is a question and answer site for users and developers of distributed applications built on top of the blockchain operating system, EOS.IO. It only takes a minute to sign up.
Sign up to join this communityTransfer of NFT tokens. I need to send NFT tokens using web JS.
I will be able to send coins using this code.
But I can't find anything like this for sending nft tokens
the example you are showing is using the transfer
action of the fungible token contract eosio.token
if you would have in place a non-fungible token contract let's say eosio.nft
it would prolly have an action called transfer
as well.
and you would send nft tokens using the eosio.nft::transfer
action in a similar fashion as the code you are pointing out in your question.
To transfer an NFT on EOS / WAX, you can do it like this:
In the transaction, use the account / name atomicassets / transfer
data: {
from: 'me.wam',
to: 'you.wam',
asset_ids: [1234567890],
memo: 'sending you an nft'
}
Hope this helps :)