[][src]Struct rpc::v1::types::BlockTemplate

pub struct BlockTemplate {
    pub version: u32,
    pub rules: Option<Vec<String>>,
    pub vbavailable: Option<HashMap<String, u32>>,
    pub vbrequired: Option<u32>,
    pub previousblockhash: H256,
    pub transactions: Vec<BlockTemplateTransaction>,
    pub coinbaseaux: Option<HashMap<String, String>>,
    pub coinbasevalue: Option<u64>,
    pub coinbasetxn: Option<BlockTemplateTransaction>,
    pub target: H256,
    pub mintime: Option<i64>,
    pub mutable: Option<Vec<String>>,
    pub noncerange: Option<String>,
    pub sigoplimit: Option<u32>,
    pub sizelimit: Option<u32>,
    pub weightlimit: Option<u32>,
    pub curtime: u32,
    pub bits: u32,
    pub height: u32,
}

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

The preferred block version

Specific block rules that are to be enforced

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

Bit mask of versionbits the server requires set in submissions

The hash of previous (best known) block

Contents of non-coinbase transactions that should be included in the next block

Data that should be included in the coinbase's scriptSig content Keys: ignored Values: value to be included in scriptSig

Maximum allowable input to coinbase transaction, including the generation award and transaction fees (in Satoshis)

information for coinbase transaction

The hash target

The minimum timestamp appropriate for next block time in seconds since epoch (Jan 1 1970 GMT)

List of ways the block template may be changed, e.g. 'time', 'transactions', 'prevblock'

A range of valid nonces (constant 00000000ffffffff)

Limit of sigops in blocks

Limit of block size

Limit of block weight

Current timestamp in seconds since epoch (Jan 1 1970 GMT)

Compressed target of next block

The height of the next block

Trait Implementations

impl Debug for BlockTemplate
[src]

Formats the value using the given formatter. Read more

impl Default for BlockTemplate
[src]

Returns the "default value" for a type. Read more

impl PartialEq for BlockTemplate
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for BlockTemplate
[src]

impl Clone for BlockTemplate
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<BlockTemplate> for BlockTemplate
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for BlockTemplate

impl Sync for BlockTemplate

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 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]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Important traits for &'a mut R

Immutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Important traits for &'a mut R

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 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> Erased for T