raineorshine
2/11/2017 - 3:02 PM

Send a raw RPC request with web3

Send a raw RPC request with web3

web3.currentProvider.sendAsync({
  jsonrpc: “2.0”, 
  method: “evm_increaseTime”,
  params: [60], // 60 seconds, may need to be hex, I forget
  id: new Date().getTime() // Id of the request; anything works, really
}, function(err) {
  // ...
});