Why does my Solana transfer still say Memo is missing even though I included one?
Solana’s Token-2022 allows recipient token accounts to enable MemoTransfer, which requires an on-chain memo instruction to accompany incoming transfers. The official developer documentation states that the memo instruction must appear immediately before the corresponding transfer instruction. Simply entering a memo in the app, or placing it elsewhere in the transaction, may not satisfy the check.
For example, an app may bundle two transfers into one transaction and place a single memo at the beginning. The memo appears immediately before the first transfer, but another transfer appears before the second. If the recipient account for the second transfer also requires a memo, you need to check the instruction immediately before it. When processing batches, checking each transfer by recipient account is more accurate than simply checking whether the transaction as a whole contains a memo.
If you encounter an error, first check whether the receiving token account has this extension enabled, then check the order of the memo and the corresponding transfer in the transaction. Also verify that the memo required by the app’s order follows the recipient’s rules. The on-chain instruction order and how the order system recognizes the memo are two separate things to check.
$SOL #Solana
Original documentation https://solana.com/docs/tokens/extensions/memo-transfer