veros
Library to communicate with veros crypto on ethereum blockchain
Last updated 4 years ago by dancearnau .
ISC · Original npm · Tarball · package.json
$ cnpm install veros 
SYNC missed versions from official npm registry.

Welcome to VEROS.

This package should be used by any party that wants to integrate the VEROS cryptocurrency in their services.

Getting started

Start by installing the module using:

npm install veros --save

Then import the library into your project by adding the following line:

var veros = require('veros');

In order to start using VEROS you need to connect to your local Ethereum node. Please make sure the node is up and running with the RPC API available and open.

In order to connect to the node run the following code:

veros.connectToEthereumNode(address, coinbaseAddress, coinbasePassword, sandbox, completion);

The parameters are:

  • address = The HTTP address of the Ethereum node http://127.0.0.1:8545
  • coinbaseAddress = The Ethereum address of your coinbase account. This is used to pay ETH transaction fees
  • coinbasePassword = The password to your coinbase account
  • sandbox = a boolean that indicates if the ethereum is running on testnet or production
  • completion(err,blockNumber) = The complication block that is called after the connection is based. It will return an error or the current blockNumber or your ethereum node.

Available methods

  • getBlockNumber = Returns the current block nunmber
  • createAccount(password) = Creates a new account with the specified password
  • checkAccount(address,password) = Returns true if the credentials are correct.
  • listAccounts = Returns a list of all accounts on the current Ethereum node.
  • getVerosBalance(address) = Returns the VEROS balance of the selected address
  • addChildrenAddress(ownerAccount, ownerAccountPassword,parentAddress,completion) = Adds a child address to your account.
  • transfer(fromAccount, fromAccountPassword, recipientAddress, amount, completions) = Sends VEROS from one account to another. You need to specify the credentials of the sender account.

Current Tags

  • 3.2.6                                ...           latest (3 years ago)

17 Versions

  • 3.2.6                                ...           3 years ago
  • 3.2.5                                ...           3 years ago
  • 3.2.4                                ...           3 years ago
  • 3.2.3                                ...           3 years ago
  • 3.2.2                                ...           3 years ago
  • 3.1.46                                ...           3 years ago
  • 1.0.10                                ...           4 years ago
  • 1.0.9                                ...           4 years ago
  • 1.0.8                                ...           4 years ago
  • 1.0.7                                ...           4 years ago
  • 1.0.6                                ...           4 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |