pub struct GetblockParams {
pub blockhash: BlockHash,
pub verbosity: Option<i64>,
}Expand description
If verbosity is 0, returns a string that is serialized, hex-encoded data for block ‘hash’. If verbosity is 1, returns an Object with information about block <hash>. If verbosity is 2, returns an Object with information about block <hash> and information about each transaction. If verbosity is 3, returns an Object with information about block <hash> and information about each transaction, including prevout information for inputs (only for unpruned blocks in the current best chain).
Fields§
§blockhash: BlockHashThe block hash
verbosity: Option<i64>0 for hex-encoded data, 1 for a JSON object, 2 for JSON object with transaction data, and 3 for JSON object with transaction data including prevout information for inputs
Trait Implementations§
Source§impl Debug for GetblockParams
impl Debug for GetblockParams
Auto Trait Implementations§
impl Freeze for GetblockParams
impl RefUnwindSafe for GetblockParams
impl Send for GetblockParams
impl Sync for GetblockParams
impl Unpin for GetblockParams
impl UnwindSafe for GetblockParams
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