Skip to content

Instantly share code, notes, and snippets.

@mattkanwisher
Created May 30, 2018 07:56
Show Gist options
  • Save mattkanwisher/12d7356e75470d9b1e4ae2674c8422a8 to your computer and use it in GitHub Desktop.
Save mattkanwisher/12d7356e75470d9b1e4ae2674c8422a8 to your computer and use it in GitHub Desktop.
$ cat command.json
{
"method": "subevents",
"jsonrpc": "2.0",
"params": [],
"id": "dontcare"
}
$ wscat -k ws://localhost:9999/queryws < command.json
{
"jsonrpc": "2.0",
"id": "dontcare",
"result": {}
}{
"jsonrpc": "2.0",
"id": "0",
"result": {
"caller": {
"ChainID": "default",
"Local": "2DiOmpX+kSRZK0jxEgxdGuPC0eo="
},
"address": {
"ChainID": "default",
"Local": "4ojW7scVDWoi/eM/CqLYHgZZHE0="
},
"plugin": "etherboycore:0.0.1",
"blockHeight": 65,
"encodedData": "eyJPd25lciI6ImdvZGJvbGUxIiwiTWV0aG9kIjoic2F2ZXN0YXRlIiwiQWRkciI6IjJEaU9tcFgra1NSWkswanhFZ3hkR3VQQzBlbz0iLCJWYWx1ZSI6MTAxMH0=",
"rawRequest": "CglTYXZlU3RhdGUSGhIIZ29kYm9sZTEaDnsiVmFsdWUiOjEwMTB9"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment