@i3m/base-wallet
TypeScript icon, indicating that this package has built-in type declarations

2.6.1 • Public • Published

License: EUPL_1.2 Contributor Covenant JavaScript Style Guide

@i3m/base-wallet

A base packet with a reference TypeScript implementation (called BaseWallet) of the required functionalities for the i3-market wallet. It makes use of a KeyWallet interface that allows delegating the complexity of the wallet key management to other packages, like the sw-wallet, bok-wallet, and hw-wallet

Usage

@i3m/base-wallet can be imported to your project with npm:

npm install @i3m/base-wallet

Then either require (Node.js CJS):

const baseWallet = require('@i3m/base-wallet')

or import (JavaScript ES module):

import * as baseWallet from '@i3m/base-wallet'

The appropriate version (either cjs or esm) should be automatically chosen when importing. However, if your bundler does not import the appropriate module version, you can force it to use a specific one by just importing one of the followings:

  • @i3m/base-wallet/dist/cjs/index.node: for Node.js CJS module
  • @i3m/base-wallet/dist/esm/index.node: for Node.js ESM module

If you are coding TypeScript, types will not be automatically detected when using the specific versions. You can easily get the types in by creating adding to a types declaration file (.d.ts) the following line:

declare module '@i3m/base-wallet/dist/esm/index.browser' // use the specific file you were importing

API reference documentation

Check the API

Readme

Keywords

Package Sidebar

Install

npm i @i3m/base-wallet

Weekly Downloads

2

Version

2.6.1

License

EUPL-1.2

Unpacked Size

947 kB

Total Files

96

Last publish

Collaborators

  • rish2497
  • ferogar
  • juanelasisme