Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 424 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 424 Bytes

xpx-faucet

Get XPX from testnet

Installation

npm install xpx-faucet --save

How to use

import { NetworkType, Account } from 'tsjs-xpx-chain-sdk';
import { getXPX } from 'xpx-faucet';


const account = Account.generateNewAccount(NetworkType.TEST_NET);
const test = () => {
  const result = getXPX(account.address.plain()).then((result) => {
    console.log(result);
  });
};

test();