Created
April 27, 2026 15:21
-
-
Save gringokiwi/c60e6931341b4b204d89305f595e3bb6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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