Skip to main content

Getting Started with Node.js

The IOTA Wallet Node.js binding is published on

Safe Password Storage

In a production setup, do not store passwords in the host's environment variables or in the source code. See our backup and security recommendations for production setups.


One of:

Install the Library

The package is published in npmjs. We also use dotenv for password management in the examples.


To install with npm, you can run the following command:

npm install @iota/wallet dotenv


To install with yarn, you can run the following command:

yarn install @iota/wallet dotenv

Use the Library

After you have installed the library, you can create a AccountManager instance and interface with it.

const accountManagerOptions = {
storagePath: './alice-database',
clientOptions: {
nodes: [''],
localPow: true,
coinType: CoinType.Shimmer,
secretManager: {
stronghold: {
snapshotPath: `./wallet.stronghold`,
password: `${process.env.SH_PASSWORD}`,

const manager = new AccountManager(accountManagerOptions);

What's Next?

Now that you are up and running, you can get acquainted with the library using its how-to guides and the repository's code examples.