algosdk is the official JavaScript library for interacting with the Algorand blockchain network. It provides comprehensive functionalities for account management, transaction creation, signing, and submission, as well as querying blockchain data. Designed for both Node.js (requiring v18.0.0 or higher) and modern browsers, the SDK is actively maintained by Algorand, with frequent releases addressing bugfixes, enhancements, and API updates to align with the latest Algorand protocol specifications. The current stable version is 3.5.2. Version 3.x introduced significant breaking changes compared to v2.x, notably requiring explicit named imports for all functions and classes instead of a single default export or namespace object. It also ships with first-class TypeScript support, requiring TypeScript version 4.2 or higher for optimal usage.
npm install algosdkVerified import paths — ran on the pinned version, not inferred.
Initializes the Algorand SDK client, fetches node status, retrieves suggested transaction parameters, and optionally fetches account information.
Consult the `v2_TO_v3_MIGRATION_GUIDE.md` in the GitHub repository. Update all imports to use named imports, e.g., `import { Algodv2 } from 'algosdk';`.Migrate your application to algosdk v3.x or later immediately to ensure continued support, security updates, and access to new Algorand features. Refer to the migration guide for assistance.
Ensure your development and deployment environments are running Node.js v18.0.0 or a newer compatible version.
Upgrade your project's TypeScript dependency to version 4.2 or higher.
Change your import statement to `import { Algodv2 } from 'algosdk';` and then use `new Algodv2(...)` directly.Switch to ES module import syntax: `import { SomeSymbol } from 'algosdk';`. If you must use CommonJS, ensure your environment is configured for CJS (e.g., using `.cjs` extension or `type: 'commonjs'`).Update your TypeScript compiler to version 4.2 or higher. Ensure `algosdk` is correctly installed and its types are being picked up by your `tsconfig.json`.
No dependency data recorded yet.