Created
June 25, 2022 15:53
-
-
Save fukaoi/c00203282785539a18c0b24e00356e9e to your computer and use it in GitHub Desktop.
Solana memo example via solana-suite(https://github.com/atonoy/solana-suite)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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