Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aggregion/agr-client

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aggregion/agr-client

Node.js client for license management environment in the Aggregion blockchain

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
3
Weekly downloads
 
Created
Source

AGR Client for Node.js

Node.js client for license management features of Aggregion blockchain platform (AGR).

Installation

npm i @aggregion/agr-client

API

See API docs here

Usage example

const AgrClient = require('@aggregion/agr-client');

const config = {
    keyProvider: ['key'], // Private keys. May be array or string.
    chainId: 'cf057bbfb72640471fd910bcb67639c22df9f92470936cddc1ade0e2f2e7dc4f', // Id of chain
    httpEndpoint: 'https://devnet.blockchain.aggregion.com/', // Endpoint url
    verbose: true // Enable or disable verbose mode
};

const client = new AgrClient(config);

// Generate key pair

const keyPair = await AgrClient.createKeyPair(); // returns {publicKey: '...', privateKey: '...'}

// Create an account

await agg.createAccount('payer', 'accountname', keyPair.publicKey, keyPair.publicKey);

// Transfer AGR

await agg.transfer('sender', 'receiver', new Asset(100, 'AGR'));

// Get account balance

const balance = await agg.getAccountBalance('accountname');

Test

Default run:

npm test

Run with verbose mode:

VERBOSE=1 npm test

License

ISC

Contacts

For any questions: info@aggregion.com

FAQs

Package last updated on 20 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc