JSPM

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

Package Exports

    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

    Polkadot Wrapper is a Node.js 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
    
    ```javascript
    const PolkadotWrapper = require('polkadot-wrapper');
    
    const endpoint = 'wss://rpc.polkadot.io';
    const polkadot = new PolkadotWrapper(endpoint);
    
    (async () => {
      await polkadot.connect();
      const latestBlock = await polkadot.getLatestBlock();
      console.log('Latest block:', latestBlock);
      
      const newAccount = polkadot.createAccount();
      console.log('New account:', newAccount);
    })();