• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ethjs / ethjs / 31
100%

Build:
DEFAULT BRANCH: master
Ran 28 Jan 2020 10:14PM UTC
Jobs 1
Files 2
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
31

Pull #35

travis-ci

web-flow
Create nodejs.yml

const Eth = require('ethjs');
const eth = new Eth(new Eth.HttpProvider('https://ropsten.infura.io'));

eth.getBlockByNumber(45300, true, (err, block) => {
  // result null { ...block data... }
});

const etherValue = Eth.toWei(72, 'ether');

// result <BN: 3e733628714200000>

const tokenABI = [{
  "constant": true,
  "inputs": [],
  "name": "totalSupply",
  "outputs":[{"name": "","type": "uint256"}],
  "payable": false,
  "type": "function",
}];

const token = eth.contract(tokenABI).at('0x6e0E0e02377Bc1d90E8a7c21f12BA385C2C35f78');

token.totalSupply().then((totalSupply) => {
  // result <BN ...>  4500000
});

// token.transfer( ... ).then(txHash => eth.getTransactionSuccess(txHash)).then(receipt => console.log(receipt));
Pull Request #35: Create nodejs.yml

59 of 59 relevant lines covered (100.0%)

13.98 hits per line

Jobs
ID Job ID Ran Files Coverage
1 31.1 (CXX=g++-4.8) 28 Jan 2020 10:14PM UTC 0
100.0
Travis Job 31.1
Source Files on build 31
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #31
  • Pull Request #35
  • PR Base - master (#29)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc