Skip to content

Instantly share code, notes, and snippets.

@dmitryn
dmitryn / 0x_Tutorial_1.js
Created October 13, 2017 09:03 — forked from PhABC/0x_Tutorial_1.js
0x.js Tutorial on how to create, validate and fill an order
const Web3 = require('web3');
const ZeroEx = require('0x.js').ZeroEx;
const BigNumber = require('bignumber.js');
// Default provider for TestRPC
const provider = new Web3.providers.HttpProvider('http://localhost:8545')
// Calling constructor
const zeroEx = new ZeroEx(provider);