New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cuprumtezlib

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cuprumtezlib

Cuprumcoin JavaScript API

latest
npmnpm
Version
0.6.5
Version published
Maintainers
1
Created
Source

cuprumtezlib - A JS Library for Cuprumcoin

npm Build Status

Getting Started

npm install cuprumtezlib
// Import library or individual modules
import Sotez, { utility, forge, crypto, ledger } from 'cuprumtezlib';

// Or using require
const Sotez = require('cuprumtezlib').default;
const { utility, forge, crypto, ledger } = require('cuprumtezlib');
  const sotez = new Sotez('RPCURL');
  var cli = require("enc.cli.js")

  // Imported Address
  const importedkey = cli.eztz.crypto.extractKeys("secretKey")
  console.log("Imported address:", importedkey);

  // Address Generation
  var address = cli.eztz.crypto.generateKeysNoSeed()
  console.log("Generated Address:", address);

  // Checking Balance 
  sotez.getBalance(address.pkh)
  .then(balance => {    
    console.log(`Account balance : ${balance}`)  
  });

  // Query chain data
  sotez.query('/chains/main/blocks/head')
    .then(response => console.log(response));

Development

npm install
npm run build

Compiled files will be located in the lib folder. Distribution files will be located in the dist/node and dist/web folders.

License

MIT

Keywords

Cuprumcoin

FAQs

Package last updated on 01 Jun 2022

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