pub struct GenerateblockParams {
pub output: String,
pub transactions: Vec<Value>,
pub submit: Option<bool>,
}Expand description
Mine a set of ordered transactions to a specified address or descriptor and return the block hash.
Fields§
§output: StringThe address or descriptor to send the newly generated bitcoin to.
transactions: Vec<Value>An array of hex strings which are either txids or raw transactions. Txids must reference transactions currently in the mempool. All transactions must be valid and in valid order, otherwise the block will be rejected.
submit: Option<bool>Whether to submit the block before the RPC call returns or to return it as hex.
Trait Implementations§
Source§impl Debug for GenerateblockParams
impl Debug for GenerateblockParams
Auto Trait Implementations§
impl Freeze for GenerateblockParams
impl RefUnwindSafe for GenerateblockParams
impl Send for GenerateblockParams
impl Sync for GenerateblockParams
impl Unpin for GenerateblockParams
impl UnwindSafe for GenerateblockParams
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