Memo Field

Extra text attached to a payment for reference, which some chains charge for and some expose publicly.

Basically

A memo field is optional information attached to a cryptocurrency transaction. You can use it to identify a payment or keep records.

Key Takeaways

  • A memo field is optional text or data attached to a cryptocurrency transaction. It can identify payments, route deposits, or embed arbitrary information on-chain, with different blockchains using distinct approaches such as Bitcoin's OP_RETURN output and Stellar's protocol-level memo types.
  • Exchanges and custodial services rely on memo fields or destination tags to route deposits to individual user accounts. Omitting a required memo when sending to a shared deposit address can result in permanently lost funds.
  • Memo fields create privacy trade-offs. They help with payment identification and record-keeping, but on-chain memos are publicly visible and can link transactions to real-world identities, undermining the pseudonymity that cryptocurrencies provide.

What Is a Memo Field?

A memo field is an optional piece of metadata attached to a cryptocurrency transaction. It serves a similar purpose to the reference line on a bank transfer or the memo on a cheque: it tells the recipient what the payment is for, who sent it, or how to process it. Unlike the core transaction data of sender, receiver and amount, memo field content is typically not enforced by consensus rules and exists as application-layer metadata.

The concept appears across virtually every blockchain, though implementations vary significantly. Bitcoin uses OP_RETURN outputs to embed arbitrary data, while Stellar and XRP include dedicated memo or destination tag fields at the protocol level. The Lightning Network attaches descriptions to invoices, Ethereum transactions carry a general-purpose data field that can serve as a memo for simple transfers, and each approach reflects different design philosophies about what metadata belongs on a blockchain and how it should be structured.

How It Works

Memo field implementations fall into two broad categories. Protocol-level fields are part of the transaction structure, while application-layer conventions repurpose existing transaction features for metadata.

Bitcoin: OP_RETURN

Bitcoin does not have a native memo field. Instead, transactions can include an OP_RETURN output: a special script opcode that marks an output as provably unspendable. This allows arbitrary data to be embedded in a transaction without bloating the UTXO set, since nodes can safely discard unspendable outputs.

Bitcoin Core versions before v30 used relay policy to limit OP_RETURN data to 80 bytes and allow only one OP_RETURN output per transaction. Bitcoin Core v30 removed these relay policy restrictions, though the data was never restricted at the consensus level: miners could always include larger OP_RETURN data directly in blocks.

Stellar: Protocol-Level Memos

Stellar includes a dedicated memo field in its transaction structure. The field has four distinct types.

These are protocol-level fields. The network validates their format, including correct type and compliance with size limits, even though it does not interpret their semantic content.

XRP: Destination Tags

XRP uses destination tags: 32-bit unsigned integers ranging from 0 to 4,294,967,295, defined as an optional field in the transaction protocol. Exchanges use a single XRP address for all customer deposits and rely on the destination tag to route incoming funds to specific user accounts. Unlike Stellar's multiple memo types, XRP destination tags are strictly numeric.

Lightning Network: Invoice Descriptions

Lightning Network memo-like functionality lives in the invoice layer rather than in transactions themselves. A BOLT 11 invoice includes a description field, the d tag, that carries a UTF-8 string describing the payment reason. For longer descriptions, the h tag carries a SHA-256 hash of the full description text, which must be communicated out-of-band.

These descriptions are off-chain metadata shared only between sender and receiver, and any routing nodes that inspect the invoice. They are not broadcast to the broader network or stored on a blockchain. For more detail, see the research article on Lightning invoices and BOLT 12.

EVM Chains: Transaction Input Data

Every Ethereum transaction includes a data field, also called calldata. For smart contract interactions, this field encodes a 4-byte function selector followed by ABI-encoded arguments. For simple transfers between externally owned accounts (EOAs), the EVM ignores the data field entirely, but the data is still persisted on-chain.

The data field is therefore usable as an arbitrary memo for EOA-to-EOA transfers. There is no protocol-enforced size limit beyond the block gas limit: calldata costs 16 gas per non-zero byte and 4 gas per zero byte after EIP-2028, so longer memos simply cost more gas.

Exchange Deposit Routing

The most common real-world use of memo fields is identifying deposits on cryptocurrency exchanges. Many exchanges operate a shared deposit address for all customers on networks like Stellar, XRP, EOS and TON. When a user deposits funds, the memo or destination tag tells the exchange which internal account to credit.

The operational detail matters: sending funds to an exchange without the required memo typically means the exchange receives the funds but cannot automatically attribute them to any user account. Recovery requires manual intervention by the exchange's support team and is not always possible.

Invoice and Payment References

Merchants and payment processors use memo fields to attach invoice numbers, order IDs or customer references to transactions. This enables automated reconciliation between blockchain transactions and accounting systems. A payment processor receiving funds can programmatically match each transaction to the corresponding invoice by reading the memo field.

Data Anchoring

Data anchoring uses memo fields, primarily Bitcoin's OP_RETURN, to timestamp document hashes on a blockchain. By embedding a cryptographic hash of a document in a transaction, you create a tamper-evident proof that the document existed at the time the transaction was confirmed. This technique is used for notarisation, supply chain provenance and audit trails.

On-Chain Messaging

Memo fields have been used for on-chain communication, from simple messages between addresses to protocol-level signalling. Bitcoin's OP_RETURN has been used by protocols like Runes and Ordinals to embed protocol metadata. On Ethereum, the calldata field has been used for on-chain messaging services and even for broadcasting text messages between addresses.

Consensus-Relevant vs. Application-Layer Data

Memo data falls into two distinct groups. One group affects transaction validity, while the other is purely informational.

Consensus-relevant memo data includes EVM calldata for contract calls, XRP destination tags, Stellar memos and Bitcoin's OP_RETURN opcode itself. EVM calldata directly determines contract execution, XRP destination tags and Stellar memos are validated at the protocol level for correct format and size, and consensus rules ensure the OP_RETURN output is unspendable.

Application-layer memo data includes the content of OP_RETURN data, Lightning invoice descriptions and EOA-to-EOA calldata on Ethereum. Consensus ignores what the OP_RETURN bytes mean, Lightning descriptions remain off-chain between sender and receiver, and EOA-to-EOA calldata is persisted but never executed. The blockchain stores this data faithfully, but its interpretation happens entirely in application software, so two different applications can read the same memo field and derive completely different meanings.

Privacy Implications

Memo fields on public blockchains are visible to everyone, permanently. Attaching an invoice number, customer ID or personal message to a transaction creates a durable link between a blockchain transaction and a real-world identity. Combined with chain analysis techniques, memo fields can significantly reduce the pseudonymity of cryptocurrency payments.

Exchange destination tags are especially revealing: they tie a blockchain address to a specific exchange account, which is itself tied to a verified identity through KYC requirements. Anyone who observes the transaction can see the destination tag and know which exchange account received the funds.

Lost Funds from Missing Memos

Forgetting a required memo or destination tag for an exchange deposit is one of the most common user errors in cryptocurrency. The funds arrive at the exchange's address but cannot be automatically routed, and some exchanges offer recovery processes while others do not. The risk is highest on networks like Stellar and XRP, where shared deposit addresses are standard practice.

Data Permanence

Information embedded in memo fields is immutable once confirmed on a blockchain. Accidentally including sensitive data, such as personal information, API keys or private messages, in an on-chain memo creates a permanent, publicly accessible record. Unlike centralised databases, there is no way to delete or modify this data after the fact.

Size Constraints and Costs

Every blockchain imposes limits on memo field data, whether through explicit size caps such as Stellar's 28-byte text memo and XRP's 32-bit integer tag, or through economic costs such as Ethereum's per-byte gas charges and Bitcoin's fee rate applied to OP_RETURN data size. These constraints mean memo fields are best suited for short references, hashes and identifiers rather than large documents or rich media.

Why It Matters

Memo fields bridge the gap between raw cryptocurrency transactions and the real-world context surrounding payments. Without them, every transaction would be an anonymous transfer of value with no built-in way to communicate purpose or routing information. For businesses integrating cryptocurrency payments, memo fields enable the kind of automated reconciliation and identification that traditional payment rails provide through structured messaging standards like ISO 20022.

Networks like Spark settle transactions off-chain with high throughput, and the ability to attach payment metadata is needed for merchant adoption and payment processor integration. Whether through Lightning invoice descriptions or application-layer references linked to a payment hash, memo-like functionality ensures that fast, low-cost payments remain compatible with existing business workflows.

The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.

0

← All 1876 glossary terms