Skip to content

Latest commit

 

History

History
65 lines (44 loc) · 1.73 KB

README.md

File metadata and controls

65 lines (44 loc) · 1.73 KB

SDK for aleo blockchain

Maintainer aleochain.io team.

SDK package size has been greatly reduced compared to @aleohq/sdk (> 1.45 MiB). Less features. Based on testnet3 branch.

Package (.wasm) Size Gzip (6 lvl) Brotli (6 lvl)
@aleohq/sdk 3 MiB 2 MiB 1.45 MiB
@qqmee/sdk-account-nodejs 176 KiB 66 KiB 59 KiB
@qqmee/sdk-account-web ^ ^ ^
@qqmee/sdk-account-bundler ^ ^ ^

Features

  • create a new acccount
  • from private key
  • from view key
  • from seed

Examples

They here

Install rust (archlinux)

pacman -S rustup wasm-pack
rustup update stable --force

Install nodejs

Follow https://github.com/nvm-sh/nvm#installing-and-updating

nvm install --lts # or 16

How to build

Example for account package

Download

git clone https://github.com/qqmee/aleo-sdk && cd aleo-sdk/packages/account

Build

wasm-pack build --scope qqmee --features console_error_panic_hook --target nodejs # or web

How to run examples

Use wasm-pack as mentioned above before launch

cd examples
npm i
node account.mjs