4

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.

0

1 Answer 1

3

Yes, it's possible. You can add both instructions to the same transaction.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.