1.10.1-beta.3 • Published 6 years ago

@leizciw/sdk-installer v1.10.1-beta.3

Weekly downloads
-
License
LGPL-3.0
Repository
-
Last release
6 years ago

AZTEC SDK Installer

This is a simple npm package that helps you setup AZTEC in your project.

Install

yarn add @aztec/sdk-installer

or

npm install @aztec/sdk-installer

Getting started

When you import installer to your code, the installer will add a script tag to the html. The content of the SDK will start loading at this point and might not be available immediately. So you will also need to provide a callback to the installer. The callback will be triggered once the SDK is ready to use.

import installer from '@aztec/sdk-installer';

const startUsingAztec = () => {};

installer.onLoad(startUsingAztec);

** Note that the webpage will fetch the SDK with the same version as the installer. So upgrade the installer regularly to get the latest version of the SDK.

Using the SDK

Once the SDK is loaded, you can access aztec by:

await window.aztec.enable();

or

import installer from '@aztec/sdk-installer';
await installer.aztec.enable();

For the full AZTEC SDK usage

Checkout the docs here: https://docs.aztecprotocol.com/

1.10.1-beta.3

6 years ago

1.10.1-beta.2

6 years ago

1.10.1-beta.1

6 years ago

1.10.1-beta.0

6 years ago

1.8.0-beta.1

6 years ago

1.8.0-beta.0

6 years ago

1.8.0

6 years ago