Skip to content

Instantly share code, notes, and snippets.

var web3 = require('web3');
function sendOrder(contractAddress){
OC.createOrder.sendTransaction("client1","file1", {from: web3.eth.accounts[0],gas: 2000000});
console.log("Order Sent");
}
function setUpFilter(contract){
var filter = web3.eth.filter([contract.orderStatusChanged]);
filter.watch(orderEvent);
{
"config": {
"chainId": 20170116,
"homesteadBlock":0,
"eip150Block":0,
"eip155Block":10,
"eip158Block":10,
"eip160Block":10
},
"nonce": "0x0000000000000042",
0xff8baab6d171ae04a15d72dab3b9c13391fb9167
0xCEf95BBC52200DfBCB00D5D149326f66D923928A
0x2a614d42323681E470087992Df29aeee7263D55C
0x2a614d42323681E470087992Df29aeee7263D55C
0x2a614d42323681E470087992Df29aeee7263D55C
0x2a614d42323681E470087992Df29aeee7263D55C
0x59d05271875d8f42ae042d1b13c964550ed38339
https://gist.github.com/extropyCoder/7431e8209533dfdeb528bcb05f2cb421