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

virtualbox-js

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

virtualbox-js

SDK For Interacting With VirtualCoin In NodeJS

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

virtualbox-nodejs

SDK For Interacting With VirtualCoin In NodeJS

Installation

npm install virtualbox-js

Initialization

const vc = require("virtualbox-js")
let virtualbox = new vc.VirtualBox()
//Initializing With Current Address
virtualbox.init("virtualcoin.glitch.me")

Checking Balance

virtualbox.Balance("address")
  .then(balance => console.log(balance))
  .catch(err => console.log(err))
//Outputs In Number

Getting A Transaction By Id

virtualbox.GetTxById(id)
  .then(tx => console.log(tx))
  .catch(err => console.log(err))
//Outputs A Valid Transaction If Exists As An Object
//Outputs A Blank Transaction If It Doesn't Exist As An Object

Getting A List Of Received Txs

virtualbox.ReceivedTx("address")
  .then(txs => console.log(txs))
  .catch(err => console.log(err))
//Outputs null If No Transactions Were Made Before
//Outputs An Array With A List Of Transactions

Getting A List Of Sent Txs

virtualbox.SentTx("address")
  .then(txs => console.log(txs))
  .catch(err => console.log(err))
//Outputs null If No Transactions Were Made Before
//Outputs An Array With A List Of Transactions

Creating A Wallet

virtualbox.CreateWallet()
  .then(wallet => console.log(wallet))
  .catch(err => console.log(err))
//Outputs An Object With Mnemonic, Privatekey and Publickey (address)

Checking If A Transaction Is An Contract

virtualbox.IsContract(id)
  .then(iscontract => console.log(iscontract))
  .catch(err => console.log(err))
//Outputs True If It Is An Contract, Else False

Sending A Transaction

FAQs

Package last updated on 09 Aug 2020

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