payment-getway-library

0.0.29 • Public • Published

Payment Gateway

Payment Gateway is a Javascript library that provides an easy-to-use interface for interacting with a Polkadot node using the @polkadot/api library.

Installation

npm i payment-getway-library

Usage

const paymentGateway = require("payment-getway-library");

async function main() {
  const wrapper = new paymentGateway('ws://server-ip-address:9944');
  await wrapper.connect();

  const latestBlock = await wrapper.getLatestBlock();
  console.log('Latest block:', latestBlock);

  const newAccount = wrapper.createAccount();
  console.log('New account:', newAccount);
}

main().catch(console.error);

Package Sidebar

Install

npm i payment-getway-library

Weekly Downloads

1

Version

0.0.29

License

ISC

Unpacked Size

8.01 kB

Total Files

4

Last publish

Collaborators

  • kiadr9372