Common
Subscribe to chain-level common events, including block number changes and market list changes.
Subscribe Request
{
"id": 5,
"method": "SUBSCRIBE",
"params": {
"chainId": 143,
"type": "common"
}
}Unsubscribe Request
{
"id": 5,
"method": "UNSUBSCRIBE",
"params": {
"chainId": 143,
"type": "common"
}
}Parameter Description
chainId(required): Chain IDtype(required): Must be"common"
Data Stream Message Types
Block Number Changed (blockNumChanged)
Market List Changed (marketListChanged)
Market Pair Info Changed (marketPairInfoChanged)
This message is also received when subscribing to the instrument type:
Stream Types
When subscribing to common, you will receive the following stream types:
blockNumChanged: Sent when a new block is mined on the chain
marketListChanged: Sent when the market list is updated (new markets added, markets removed, etc.)
marketPairInfoChanged: Sent when market pair information changes (can also be received via
instrumentsubscription)
Last updated