solana_kit_memo 0.3.1 copy "solana_kit_memo: ^0.3.1" to clipboard
solana_kit_memo: ^0.3.1 copied to clipboard

Memo program client for the Solana Kit Dart SDK.

solana_kit_memo #

Coverage website Memo program client for the Solana Kit Dart SDK.

Provides generated codecs and ergonomic helpers for the Memo program, which attaches arbitrary UTF-8 memo text to Solana transactions.

Installation #

Installation #

Install the package directly:

dependencies:
  "solana_kit_memo": ^0.3.1

If your app uses several Solana Kit packages together, you can also depend on the umbrella package instead:

dart pub add solana_kit

Inside this monorepo, Dart workspace resolution uses the local package automatically.

Usage #

import 'package:solana_kit_memo/solana_kit_memo.dart';

final instruction = getAddMemoInstruction(memo: 'Hello from Solana Kit');

Use memoLegacyProgramAddress when you need to target the legacy Memo program:

final legacyInstruction = getAddMemoInstruction(
  memo: 'legacy memo',
  programAddress: memoLegacyProgramAddress,
);

Key APIs #

  • getAddMemoInstruction({required String memo}) — builds a Memo instruction from plain Dart text.
  • AddMemoInstructionData — generated instruction data model.
  • getAddMemoInstructionDataCodec() — UTF-8 codec for AddMemo data.
  • memoProgramAddress — current Memo program address.
  • memoLegacyProgramAddress — legacy Memo program address.

Upstream reference #

Generated layer mirrors solana-program/memo at js@v0.11.2.