{
"channel": "channel_name",
"body": "<object or array>" // depends on channel
}subscribe request to server.{
"method": "subscribe",
"body": {
"channel": "<CHANNEL_NAME>",
"filters": {
// pass channel filters
}
}
}head - receive information about indexer state. Channel does not have any filters. Subscribe message should looks like:{
"method": "subscribe",
"body": {
"channel": "head"
}
}responses.State type will be sent to the channel.blocks - receive information about new blocks. Channel does not have any filters. Subscribe message should looks like:{
"method": "subscribe",
"body": {
"channel": "blocks"
}
}responses.Block type will be sent to the channel.gas_price - receive information about current gas price. Channel does not have any filters. Subscribe message should looks like:{
"method": "subscribe",
"body": {
"channel": "gas_price"
}
}responses.GasPrice type will be sent to the channel.unsubscribe message containing one of channel name describing above.{
"method": "unsubscribe",
"body": {
"channel": "<CHANNEL_NAME>",
}
}