1.1.2 • Published 4 years ago

tsunagi v1.1.2

Weekly downloads
190
License
-
Repository
-
Last release
4 years ago

This is the home of tsunagi—the flagship package of the Tsunagi ecosystem. Here we expose bindings and wallet integrations for leveraging the 0x protocol from a browser.


Supported Wallets

Usage

Installation

Via Yarn (recommended):

yarn add tsunagi

or via NPM:

npm install tsunagi

Getting started

Spinning up

  1. Import and instantiate a wallet of your choice:
import { MetamaskWallet } from 'tsunagi';

const metamaskWallet = new MetamaskWallet({
  rpcEndpoints: ['https://...']
});
  1. Start the connection to your wallet instance:
await metamaskWallet.start();
  1. Get accounts:
const accounts = await metamaskWallet.getAccounts();
const myAccount = accounts[0]; // An instance of EthereumAccount -- this is where things get fun!

Spinning down

await metamaskWallet.stop();

Using accounts

See EthereumAccount for information about available methods.

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

1.0.0-beta

4 years ago

0.13.1

4 years ago

0.13.0

5 years ago

0.12.4

5 years ago

0.12.3

5 years ago

0.12.2

5 years ago

0.12.1

5 years ago

0.12.0

5 years ago

0.11.9

5 years ago

0.11.8

5 years ago

0.11.7

5 years ago

0.11.6

5 years ago

0.11.5

5 years ago

0.11.4

5 years ago

0.11.3

5 years ago

0.11.2

5 years ago

0.11.1

5 years ago

0.11.0

5 years ago

0.10.1

5 years ago

0.10.0

5 years ago

0.9.1

5 years ago

0.9.0

5 years ago

0.8.0

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.4

5 years ago

0.6.3

5 years ago

0.6.2

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.4

5 years ago

0.5.3

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago