1.0.1 • Published 3 years ago

axentrojs v1.0.1

Weekly downloads
2
License
ISC
Repository
-
Last release
3 years ago

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();