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