Skip to content

Instantly share code, notes, and snippets.

@gringokiwi
Created April 27, 2026 15:21
Show Gist options
  • Select an option

  • Save gringokiwi/c60e6931341b4b204d89305f595e3bb6 to your computer and use it in GitHub Desktop.

Select an option

Save gringokiwi/c60e6931341b4b204d89305f595e3bb6 to your computer and use it in GitHub Desktop.
mkdir -p src
touch src/index.ts
pnpm init --init-type module
pnpm pkg set scripts.dev="node src/index.ts"
pnpm add @arkade-os/sdk @scure/bip39
cat <<'EOF' > src/index.ts
import { Wallet, MnemonicIdentity, InMemoryWalletRepository, InMemoryContractRepository } from '@arkade-os/sdk'
import { generateMnemonic } from '@scure/bip39'
import { wordlist } from '@scure/bip39/wordlists/english.js'
const wallet = await Wallet.create({
identity: MnemonicIdentity.fromMnemonic(generateMnemonic(wordlist)),
arkServerUrl: 'https://arkade.computer',
settlementConfig: false,
storage: {
walletRepository: new InMemoryWalletRepository(),
contractRepository: new InMemoryContractRepository()
}
})
console.log('Arkade address:', [await wallet.getAddress()])
EOF
pnpm dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment