# veros-demo

> Library to communicate with veros crypto on ethereum blockchain

Latest version **3.2.6** (published 2017-06-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install veros-demo
pnpm add veros-demo
yarn add veros-demo
bun add veros-demo
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.2.6 |
| Published | 2017-06-04 |
| First published | 2016-11-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Dan Cearnau |
| Maintainers | dancearnau |

## Links

- npm: https://www.npmjs.com/package/veros-demo
- npm.io page: https://npm.io/package/veros-demo

## Dependencies (2)

- [web3](https://npm.io/package/web3.md) ^0.17.0-beta
- [big-number](https://npm.io/package/big-number.md) ^0.4.0

## Recent versions

- 3.2.6 (latest) — 2017-06-04
- 3.2.5 — 2017-06-04
- 3.2.4 — 2017-06-04
- 3.2.3 — 2017-05-26
- 3.2.2 — 2017-05-22
- 3.2.1 — 2017-05-19
- 3.2.0 — 2017-05-19
- 3.1.48 — 2017-05-19
- 3.1.47 — 2017-05-19
- 3.1.45 — 2017-05-19
- 3.1.70 — 2016-11-24
- 3.1.68 — 2016-11-24
- 3.1.67 — 2016-11-24
- 3.1.66 — 2016-11-24
- 3.1.65 — 2016-11-24
- … 84 more at https://npm.io/package/veros-demo/versions

## README

<h2>Welcome to VEROS.</h2>

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

<h3>Getting started</h3>

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.


<h3>Available methods</h3>

- 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.

---
_Source: https://npm.io/package/veros-demo · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
