pub struct GetBlockTemplateResponse {Show 23 fields
pub bits: String,
pub capabilities: Value,
pub coinbaseaux: Value,
pub coinbasevalue: u64,
pub curtime: u64,
pub default_witness_commitment: Option<String>,
pub field_0: (),
pub height: u64,
pub longpollid: String,
pub mintime: u64,
pub mutable: Value,
pub noncerange: String,
pub previousblockhash: String,
pub rules: Value,
pub signet_challenge: Option<String>,
pub sigoplimit: u64,
pub sizelimit: u64,
pub target: String,
pub transactions: Value,
pub vbavailable: Value,
pub vbrequired: u64,
pub version: u32,
pub weightlimit: Option<u64>,
}Expand description
Response for the GetBlockTemplate RPC method
Fields§
§bits: Stringcompressed target of next block
capabilities: Value§coinbaseaux: Valuedata that should be included in the coinbase’s scriptSig content
coinbasevalue: u64maximum allowable input to coinbase transaction, including the generation award and transaction fees (in satoshis)
curtime: u64current timestamp in UNIX epoch time. Adjusted for the proposed BIP94 timewarp rule.
default_witness_commitment: Option<String>a valid witness commitment for the unmodified block template
field_0: ()§height: u64The height of the next block
longpollid: Stringan id to include with a request to longpoll on an update to this template
mintime: u64The minimum timestamp appropriate for the next block time, expressed in UNIX epoch time. Adjusted for the proposed BIP94 timewarp rule.
mutable: Valuelist of ways the block template may be changed
noncerange: StringA range of valid nonces
previousblockhash: StringThe hash of current highest block
rules: Valuespecific block rules that are to be enforced
signet_challenge: Option<String>Only on signet
sigoplimit: u64limit of sigops in blocks
sizelimit: u64limit of block size
target: StringThe hash target
transactions: Valuecontents of non-coinbase transactions that should be included in the next block
vbavailable: Valueset of pending, supported versionbit (BIP 9) softfork deployments
vbrequired: u64bit mask of versionbits the server requires set in submissions
version: u32The preferred block version
weightlimit: Option<u64>limit of block weight
Trait Implementations§
Source§impl Clone for GetBlockTemplateResponse
impl Clone for GetBlockTemplateResponse
Source§fn clone(&self) -> GetBlockTemplateResponse
fn clone(&self) -> GetBlockTemplateResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more