Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nimiq/core-web

Package Overview
Dependencies
Maintainers
0
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nimiq/core-web

**[Nimiq](https://nimiq.com/)** is a frictionless payment protocol for the web.

  • 1.6.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
400
decreased by-14.53%
Maintainers
0
Weekly downloads
 
Created
Source

Nimiq Blockchain Build Status

Nimiq is a frictionless payment protocol for the web.

Resources

Demo

Check out our Testnet.

Packages

Prebuilt binary packages

For users looking to run a standalone Nimiq node (which is also capable of mining), see our Downloads page for installable Linux and Windows binary packages.

NPM Packages

For developers looking to include Nimiq support on their applications, there are two npm packages available:

Web Developers

Simple Web Application on top of Nimiq

A good way to get started is to have a look at the most simple web application on top of the Nimiq Blockchain.

Getting Started

Import Nimiq as an ES6 module:

// With a package.json-aware module loader:
import Nimiq from '@nimiq/core-web';

// Otherwise:
import Nimiq from 'node_modules/@nimiq/core-web/web.esm.js';

To use Nimiq's cryptographic functions (for hashing, signing, derivation), you have to make the following files from this package available to the browser (for e.g. Vue, this means copying them into the public folder, or getting them otherwise into the output directory):

worker.js
worker-js.js
worker-wasm.js
worker-wasm.wasm

You can then load the Nimiq worker by calling Nimiq.load() with the URL of the folder containing the files:

// Important: must be a full URL, a trailing slash is required.
const workerURL = location.origin + '/assets/nimiq/';

Nimiq.load(workerURL).then(async function() {
    // All Nimiq functionality is available here.
});

Using a regular <script> tag

Include the nimiq.js file from this package into your project:

<script src="node_modules/@nimiq/core-web/nimiq.js"></script>

If you do not need networking support, you can also use the smaller offline build:

Nimiq.loadOffline().then(...);

Contribute

If you'd like to contribute to the development of Nimiq please follow our Code of Conduct and Contributing Guidelines.

License

This project is under the Apache License 2.0.

FAQs

Package last updated on 14 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc