Usage

Import

requires Node.js 16

import { Akord } from "@akord/akord-js";

or

const { Akord } = require("@akord/akord-js");

Quick start

Init Akord

with email & password

import { Auth, Akord } from "@akord/akord-js";
const { wallet, jwt } = Auth.signIn(email, password);
const akord = Akord.init(wallet);

with Akord Wallet & JWT

const akord = Akord.init(wallet, { authToken: jwt });

Create vault

const { vaultId } = await akord.vault.create("my first vault");

Upload file to the vault by creating new stack

Download the latest stack version

Query user vaults

More examples

See our demo app tutorial and learn how to create, contribute and access an Akord Vault. We also have some example flows in our tests repository.

Last updated

Was this helpful?