@iqprotocol/account
TypeScript icon, indicating that this package has built-in type declarations

0.19.1 • Public • Published

Account State Management

This package is part of IQ Protocol JS SDK.

The package is in development and breaking changes should be expected. Use at your own risk!

This is high level package which provides tools for IQ Protocol off-chain account state management. It is storage and blockchain agnostic and relies on injected providers.
For example, it uses storage provider (e.g. Postgres Store) to persist account information and manage off-chain state. It also allows to automatically initialize account state using blockchain provider (e.g. EIP155BlockchainProvider).

Use this package when you need an off-chain onboarding and account state management.

Installation

yarn add @iqprotocol/account

Usage

import { AccountManager, AccountStateManager } from '@iqprotocol/account';
import { PostgresStore } from '@iqprotocol/postgres-store';
import { EIP155BlockchainProvider } from '@iqprotocol/eip155';

const store = new PostgresStore(...);
const accountManager = new AccountManager({ store });

const blockchain = new EIP155BlockchainProvider(...);
const accountStateManager = new AccountStateManager({ store, blockchain });

Readme

Keywords

none

Package Sidebar

Install

npm i @iqprotocol/account

Weekly Downloads

0

Version

0.19.1

License

MIT

Unpacked Size

46.3 kB

Total Files

10

Last publish

Collaborators

  • stas_iq
  • denis.narushevich.blockvis
  • timurrassolov
  • cvts
  • cheelahim
  • d_kozickis
  • zorato