ckb_jsonrpc_types/
subscription.rs

1use serde::{Deserialize, Serialize};
2
3/// Specifies the topic which to be added as active subscription.
4#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq, Hash)]
5#[serde(rename_all = "snake_case")]
6pub enum Topic {
7    /// Subscribe new tip headers.
8    NewTipHeader,
9    /// Subscribe new tip blocks.
10    NewTipBlock,
11    /// Subscribe new transactions which are submitted to the pool.
12    NewTransaction,
13    /// Subscribe in-pool transactions which proposed on chain.
14    ProposedTransaction,
15    /// Subscribe transactions which are abandoned by tx-pool.
16    RejectedTransaction,
17}