Created
February 11, 2017 15:02
-
-
Save raineorshine/c34cdc6e343bdd2a5684f87578be2e68 to your computer and use it in GitHub Desktop.
Send a raw RPC request with web3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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