How to make a transfer with memo
This recipe demonstrates how to create and execute asset transfers that include memo data on the Chromia blockchain. Memos are useful for adding transaction references, payment IDs, or other metadata to transfers.
- JS/TS client
Prerequisites
- Node.js
- FT4 client:
npm install @chromia/ft4
- Postchain client:
npm install postchain-client
Demo script
Key Features
This recipe includes examples for:
- Online method - Using FT4 client transaction builder with memo operations
- Offline method - Creating and signing GTX transactions with memo data locally
- Memo integration - Adding custom memo data to transfers for enhanced tracking
- Transaction building - Combining memo and transfer operations in a single transaction
Learn more
- FT4 client documentation — covers account management and FT4 operations.
- Asset management — detailed guide on FT4 transfers and memo requirements.
- Account management — understanding FT4 accounts and authentication.
- JavaScript/TypeScript client — covers setup, connection, and usage patterns.