Hi, so I’m using the code in the Moralis docs to transfer an NFT but it’s not doing anything.
async function transfernft(){
const options = {
type: 'erc721',
receiver: '0x1...',
contract_address: '0xD...',
token_id: 61
}
let result = await Moralis.transfer(options);
}
I also have
Moralis.enableWeb3();
I’m using vanilla JS, and everything works, MetaMask opens up asks for conformation for transaction, after a while I get the conformation that transaction is complete but the NFT is still in the wallet address where it was.
This is my first time using Moralis NFT transfer and I don’t know what am I doing wrong.
Could someone please guide me as where my mistake is?. Thank you.