0.0.1-alpha.27 • Published 7 months ago

@xlabs-libs/wallet-aggregator-algorand v0.0.1-alpha.27

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Wallet Aggregator - Algorand

Implements the base abstractions for the Algorand blockchain.

Wallets implemented so far:

WalletLink
MyAlgo Wallethttps://wallet.myalgo.com
Pera Wallethttps://perawallet.app
Defly Wallethttps://defly.app
Ledgerhttps://ledger.com

Usage

The base Algorand wallet configuration allows setting the algorand node and indexer url and credentials, as well as setting a default account. Each wallet has also its own config options.

Example:

import {
  MyAlgoWallet,
  PeraWallet,
} from "@xlabs-libs/wallet-aggregator-algorand";

const myAlgo = new MyAlgoWallet({
  node: {
    url: "https://algo.node.io",
    token: "a_token",
  },
});

const pera = new PeraWallet({
  node: {
    url: "https://algo.node.io",
    token: "a_token",
  },
  peraOptions: {
    chainId: 416002,
  },
});

Note on Transaction signing

The Algorand wallet transaction signing interface complies with the ARC-0001. While the base cases are supported by all wallets, some of them might implement the ARC only partially (e.g: they don't support signing multisig transactions). Some features can be implemented at adapter level (i.e. in the concrete wallet classes, like skipping transaction with empty signers in the ledger HW wallet), but do not expect all functionalities to be there.