solana transfer --with-memo <MEMO> <RECIPIENT_ADDRESS> <AMOUNT>

What is the max length in a memo transaction? And does the fee go up in proportion to how long your memo is? If so by how much?

1 Answer 1


Per Memo Program docs and github:

As of v1.5.1, an unsigned instruction can support single-byte UTF-8 of up to 566 bytes. An instruction with a simple memo of 32 bytes can support up to 12 signers.

The message itself will be both on-chain (since the instruction of the Memo Program is an instruction (i.e. a "call" of an on-chain Program), as is as such part of the ledger.

In addition, the Memo Program will also write the message to the "log", a simple text file that every validator and RPC node generates, and that can be read from RPC nodes using e.g. getSignaturesForAddress from the @solana/web3.js library, see docs.

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.