You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

891 B

Subscribing to events via Websocket

Tendermint emits different events, to which you can subscribe via Websocket. This can be useful for third-party applications (for analysys) or inspecting state.

List of events

You can subscribe to any of the events above by calling subscribe RPC method via Websocket.

{
    "jsonrpc": "2.0",
    "method": "subscribe",
    "id": "0",
    "params": {
        "query": "tm.event='NewBlock'"
    }
}

Check out API docs for more information on query syntax and other options.

You can also use tags, given you had included them into DeliverTx response, to query transaction results. See Indexing transactions for details.