JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 27
  • Score
    100M100P100Q33536F
  • License ISC

Package Exports

  • payment-getway-library
  • payment-getway-library/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (payment-getway-library) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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