Skip to content

Instantly share code, notes, and snippets.

@fukaoi
Created June 25, 2022 15:53
Show Gist options
  • Save fukaoi/c00203282785539a18c0b24e00356e9e to your computer and use it in GitHub Desktop.
Save fukaoi/c00203282785539a18c0b24e00356e9e to your computer and use it in GitHub Desktop.
Solana memo example via solana-suite(https://github.com/atonoy/solana-suite)
import {Account, Memo} from '@solana-suite/core';
(async () => {
const owner = Account.create();
await Account.requestAirdrop(owner.toPublicKey());
const sig = await Memo.create(
'solana suite memo test',
owner.toPublicKey(),
owner.toKeypair()
).submit();
console.log('# signature:', sig.unwrap());
})().catch(console.error);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment