pub struct CreateRawTransaction(pub String);Expand description
Result of JSON-RPC method createrawtransaction.
createrawtransaction [{“txid”:“id”,“vout”:n},…] [{“address”:amount},{“data”:“hex”},…] ( locktime ) ( replaceable )
Create a transaction spending the given inputs and creating new outputs. Outputs can be addresses or data. Returns hex-encoded raw transaction. Note that the transaction’s inputs are not signed, and it is not stored in the wallet or transmitted to the network.
Arguments:
- “inputs” (array, required) A json array of json objects [ { “txid”:“id”, (string, required) The transaction id “vout”:n, (numeric, required) The output number
Tuple Fields§
§0: Stringhex string of the transaction.
Implementations§
Source§impl CreateRawTransaction
impl CreateRawTransaction
Sourcepub fn into_model(self) -> Result<CreateRawTransaction, FromHexError>
pub fn into_model(self) -> Result<CreateRawTransaction, FromHexError>
Converts version specific type to a version nonspecific, more strongly typed type.
Sourcepub fn transaction(self) -> Result<Transaction, FromHexError>
pub fn transaction(self) -> Result<Transaction, FromHexError>
Converts json straight to a bitcoin::Transaction.
Trait Implementations§
Source§impl Clone for CreateRawTransaction
impl Clone for CreateRawTransaction
Source§fn clone(&self) -> CreateRawTransaction
fn clone(&self) -> CreateRawTransaction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateRawTransaction
impl Debug for CreateRawTransaction
Source§impl<'de> Deserialize<'de> for CreateRawTransaction
impl<'de> Deserialize<'de> for CreateRawTransaction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CreateRawTransaction
impl PartialEq for CreateRawTransaction
Source§impl Serialize for CreateRawTransaction
impl Serialize for CreateRawTransaction
impl StructuralPartialEq for CreateRawTransaction
Auto Trait Implementations§
impl Freeze for CreateRawTransaction
impl RefUnwindSafe for CreateRawTransaction
impl Send for CreateRawTransaction
impl Sync for CreateRawTransaction
impl Unpin for CreateRawTransaction
impl UnwindSafe for CreateRawTransaction
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