Skip to main content
Became Hot Network Question
Became Hot Network Question
Became Hot Network Question
deleted 231 characters in body
Source Link
paradigm111
  • 485
  • 3
  • 11

Can you issue a createTransferInstruction() then a createCloseAccountInstruction() in the same transaction? I tried doing this to transfer an NFT then close the source Associated Token Account that is no longer required to get the rent lamports out and had an issue where it wouldn't work so first I'm wondering is it even possible to do? Like for instance if you had an NFT exchange like MagicEden, can they transfer an NFT and close the Associated Token Account in the same transaction? Ideally wanted to do in the same one since Phantom Wallet warns if you try to do more than 1 transaction at the same time.

Can you issue a createTransferInstruction() then a createCloseAccountInstruction() in the same transaction? I tried doing this to transfer an NFT then close the source Associated Token Account that is no longer required to get the rent lamports out and had an issue where it wouldn't work so first I'm wondering is it even possible to do? Like for instance if you had an NFT exchange like MagicEden, can they transfer an NFT and close the Associated Token Account in the same transaction? Ideally wanted to do in the same one since Phantom Wallet warns if you try to do more than 1 transaction at the same time.

Can you issue a createTransferInstruction() then a createCloseAccountInstruction() in the same transaction? Like for instance if you had an NFT exchange like MagicEden, can they transfer an NFT and close the Associated Token Account in the same transaction? Ideally wanted to do in the same one since Phantom Wallet warns if you try to do more than 1 transaction at the same time.

added 29 characters in body
Source Link
paradigm111
  • 485
  • 3
  • 11

Can you issue a createTransferInstruction() then a createCloseAccountInstruction() in the same transaction? I tried doing this to transfer an NFT then close the source Associated Token Account that is no longer required to get the rent lamports out and had an issue where it wouldn't work so first I'm wondering is it even possible to do? Like for instance if you had an NFT exchange like MagicEden, can they transfer an NFT and close the Associated Token Account in the same transaction? Ideally wanted to do in the same one since Phantom Wallet warns if you try to do more than 1 transaction at the same time.

Can you issue a createTransferInstruction() then a createCloseAccountInstruction() in the same transaction? I tried doing this to transfer an NFT then close the source Associated Token Account that is no longer required and had an issue where it wouldn't work so first I'm wondering is it even possible to do? Like for instance if you had an NFT exchange like MagicEden, can they transfer an NFT and close the Associated Token Account in the same transaction? Ideally wanted to do in the same one since Phantom Wallet warns if you try to do more than 1 transaction at the same time.

Can you issue a createTransferInstruction() then a createCloseAccountInstruction() in the same transaction? I tried doing this to transfer an NFT then close the source Associated Token Account that is no longer required to get the rent lamports out and had an issue where it wouldn't work so first I'm wondering is it even possible to do? Like for instance if you had an NFT exchange like MagicEden, can they transfer an NFT and close the Associated Token Account in the same transaction? Ideally wanted to do in the same one since Phantom Wallet warns if you try to do more than 1 transaction at the same time.

Source Link
paradigm111
  • 485
  • 3
  • 11

createCloseAccountInstruction() question

Can you issue a createTransferInstruction() then a createCloseAccountInstruction() in the same transaction? I tried doing this to transfer an NFT then close the source Associated Token Account that is no longer required and had an issue where it wouldn't work so first I'm wondering is it even possible to do? Like for instance if you had an NFT exchange like MagicEden, can they transfer an NFT and close the Associated Token Account in the same transaction? Ideally wanted to do in the same one since Phantom Wallet warns if you try to do more than 1 transaction at the same time.