Skip to content

Install for CommonJS

The Nimiq Web Client ships with support for CommonJS.


Installation

bash
npm install @nimiq/core@next
bash
yarn add @nimiq/core@next
bash
pnpm add @nimiq/core@next
bash
bun add @nimiq/core@next

And now you are ready to go!

javascript
const Nimiq = require('@nimiq/core')

async function main() {
  const config = new Nimiq.ClientConfiguration()
  const client = await Nimiq.Client.create(config.build())
}
main()

Contribute

You can help us improve this guide by contributing to the Nimiq Web Client documentation on GitHub. Simply click the Edit this page button at the bottom of the page to suggest changes.