[−][src]Struct rpc::v1::types::BlockTemplate
Block template as described in: https://github.com/bitcoin/bips/blob/master/bip-0022.mediawiki https://github.com/bitcoin/bips/blob/master/bip-0023.mediawiki https://github.com/bitcoin/bips/blob/master/bip-0009.mediawiki#getblocktemplate_changes https://github.com/bitcoin/bips/blob/master/bip-0145.mediawiki
Fields
version: u32
The preferred block version
rules: Option<Vec<String>>
Specific block rules that are to be enforced
vbavailable: Option<HashMap<String, u32>>
Set of pending, supported versionbit (BIP 9) softfork deployments Keys: named softfork rules Values: identifies the bit number as indicating acceptance and readiness for given key
vbrequired: Option<u32>
Bit mask of versionbits the server requires set in submissions
previousblockhash: H256
The hash of previous (best known) block
transactions: Vec<BlockTemplateTransaction>
Contents of non-coinbase transactions that should be included in the next block
coinbaseaux: Option<HashMap<String, String>>
Data that should be included in the coinbase's scriptSig content Keys: ignored Values: value to be included in scriptSig
coinbasevalue: Option<u64>
Maximum allowable input to coinbase transaction, including the generation award and transaction fees (in Satoshis)
coinbasetxn: Option<BlockTemplateTransaction>
information for coinbase transaction
target: H256
The hash target
mintime: Option<i64>
The minimum timestamp appropriate for next block time in seconds since epoch (Jan 1 1970 GMT)
mutable: Option<Vec<String>>
List of ways the block template may be changed, e.g. 'time', 'transactions', 'prevblock'
noncerange: Option<String>
A range of valid nonces (constant 00000000ffffffff)
sigoplimit: Option<u32>
Limit of sigops in blocks
sizelimit: Option<u32>
Limit of block size
weightlimit: Option<u32>
Limit of block weight
curtime: u32
Current timestamp in seconds since epoch (Jan 1 1970 GMT)
bits: u32
Compressed target of next block
height: u32
The height of the next block
Trait Implementations
impl Debug for BlockTemplate
[src]
[+]
impl Debug for BlockTemplate
impl Default for BlockTemplate
[src]
[+]
impl Default for BlockTemplate
impl PartialEq for BlockTemplate
[src]
[+]
impl PartialEq for BlockTemplate
impl Eq for BlockTemplate
[src]
impl Eq for BlockTemplate
impl Clone for BlockTemplate
[src]
[+]
impl Clone for BlockTemplate
impl From<BlockTemplate> for BlockTemplate
[src]
[+]
impl From<BlockTemplate> for BlockTemplate
Auto Trait Implementations
impl Send for BlockTemplate
impl Send for BlockTemplate
impl Sync for BlockTemplate
impl Sync for BlockTemplate
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
[−]
impl<T> ToOwned for T where
T: Clone,
type Owned = T
fn to_owned(&self) -> T
[src]
[−]
fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)
[src]
[−]
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> From for T
[src]
[−]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
[−]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
[−]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
[−]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
[−]
impl<T> Borrow for T where
T: ?Sized,
ⓘImportant traits for &'a mut Rfn borrow(&self) -> &T
[src]
[−]
fn borrow(&self) -> &T
Immutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
[−]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
[−]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized,
[src]
[−]
impl<T> BorrowMut for T where
T: ?Sized,
ⓘImportant traits for &'a mut Rfn borrow_mut(&mut self) -> &mut T
[src]
[−]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
[−]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
[−]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> Erased for T