axentrojs
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Axentrojs

Axentro wallet and transactions using js/typescript

Create a wallet

import {StandardWallet, Network} from 'axentrojs';

const wallet = StandardWallet.create(Network.mainnet);
wallet.address();
wallet.exportToWif();

Import a wallet from wif

import {StandardWallet, Network} from 'axentrojs';

const wallet = StandardWallet.importFromWif("...");
wallet.address();

Sign a transaction

import {StandardWallet} from 'axentrojs';

const wallet = StandardWallet.importFromWif("...");
wallet.signTransaction({}, 0);
wallet.address();

Create a hd wallet

import {HdWallet, Network} from 'axentrojs';

const wallet = HdWallet.create(Network.mainnet);
wallet.signTransaction({}, 0);
wallet.address();

Readme

Keywords

none

Package Sidebar

Install

npm i axentrojs

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

20.2 kB

Total Files

18

Last publish

Collaborators

  • kingsleyh