Javascript SDK
- Initial Code & Use Typescript
npm init
yarn init
pnpm init
bun init
- Add Package
npm install algosdk
yarn add algosdk
pnpm add algosdk
bun add algosdk
- Run Code
import algosdk from 'algosdk';
const generatedAccount = algosdk.generateAccount();
const passphrase = algosdk.secretKeyToMnemonic(generatedAccount.sk);
console.log(`My address: ${generatedAccount.addr}`);
console.log(`My passphrase: ${passphrase}`);