A set of core Algorand utilities written in TypeScript and released via npm that make it easier to build solutions on Algorand. This project is part of AlgoKit.
The goal of this library is to provide intuitive, productive utility functions that make it easier, quicker and safer to build applications on Algorand. Largely these functions wrap the underlying Algorand SDK, but provide a higher level interface with sensible defaults and capabilities for common tasks.
Note: If you prefer Python there's an equivalent Python utility library.
This library can be installed from NPM using your favourite npm client, e.g.:
npm install algosdk@2 @algorandfoundation/algokit-utils
Then to import it:
import { AlgorandClient, Config } from '@algorandfoundation/algokit-utils'
See usage for more details.
This library follows the Guiding Principles of AlgoKit.
This is an open source project managed by the Algorand Foundation. See the AlgoKit contributing page to learn about making improvements.
To successfully run the tests in this repository you need to be running LocalNet via AlgoKit and also have package dependencies and .env.template
copied to .env
(both of which algokit bootstrap all
can do for you):
algokit bootstrap all
algokit localnet start
To run tests you can use VS Code, or:
npm run test