pub enum Method {
Show 26 variants
AbciInfo,
AbciQuery,
Block,
BlockByHash,
BlockResults,
BlockSearch,
Blockchain,
BroadcastTxAsync,
BroadcastTxSync,
BroadcastTxCommit,
Commit,
ConsensusParams,
ConsensusState,
Genesis,
GenesisChunked,
Header,
HeaderByHash,
Health,
NetInfo,
Status,
Tx,
TxSearch,
Validators,
Subscribe,
Unsubscribe,
BroadcastEvidence,
}Expand description
JSON-RPC request methods.
Serialized as the “method” field of JSON-RPC/HTTP requests.
Variants§
AbciInfo
Get ABCI info
AbciQuery
Get ABCI query
Block
Get block info
BlockByHash
Get block info by hash
BlockResults
Get ABCI results for a particular block
BlockSearch
Search for blocks by their BeginBlock and EndBlock events
Blockchain
Get blockchain info
BroadcastTxAsync
Broadcast transaction asynchronously
BroadcastTxSync
Broadcast transaction synchronously
BroadcastTxCommit
Broadcast transaction commit
Commit
Get commit info for a block
ConsensusParams
Get consensus parameters
ConsensusState
Get consensus state
Genesis
Get genesis file
GenesisChunked
Get genesis file in multiple chunks
Header
Get block header
HeaderByHash
Get block header by hash
Health
Get health info
NetInfo
Get network info
Status
Get node status
Tx
Find transaction by hash
TxSearch
Search for transactions with their results
Validators
Get validator info for a block
Subscribe
Subscribe to events
Unsubscribe
Unsubscribe from events
BroadcastEvidence
Broadcast evidence
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Method
impl<'de> Deserialize<'de> for Method
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Method
impl Ord for Method
Source§impl PartialOrd for Method
impl PartialOrd for Method
impl Copy for Method
impl Eq for Method
impl StructuralPartialEq for Method
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.