
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@aggregion/agr-client
Advanced tools
Node.js client for license management environment in the Aggregion blockchain
Node.js client for license management features of Aggregion blockchain platform (AGR).
npm i @aggregion/agr-client
See API docs here
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');
Default run:
npm test
Run with verbose mode:
VERBOSE=1 npm test
ISC
For any questions: info@aggregion.com
FAQs
Node.js client for license management environment in the Aggregion blockchain
We found that @aggregion/agr-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.