Skip to content

Instantly share code, notes, and snippets.

@raineorshine
Created February 11, 2017 15:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raineorshine/c34cdc6e343bdd2a5684f87578be2e68 to your computer and use it in GitHub Desktop.
Save raineorshine/c34cdc6e343bdd2a5684f87578be2e68 to your computer and use it in GitHub Desktop.
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) {
// ...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment