pub struct PayOnchainRequest {
pub address: Address<NetworkUnchecked>,
pub amount: Amount,
pub priority: Option<ConfirmationPriority>,
pub client_payment_id: Option<ClientPaymentId>,
pub personal_note: Option<String>,
}Expand description
A request to send Bitcoin on-chain.
Fields§
§address: Address<NetworkUnchecked>The Bitcoin address to send to. Must be valid for the network this wallet is configured for.
amount: AmountThe amount we will send.
priority: Option<ConfirmationPriority>How quickly the transaction should confirm. A higher priority pays a
higher on-chain fee. Defaults to "normal".
client_payment_id: Option<ClientPaymentId>A client-generated id for this payment, used for idempotency.
Retrying a request with the same client_payment_id won’t send the
payment twice.
If None, a random id is generated, which provides no idempotency
across separate pay_onchain calls.
personal_note: Option<String>An optional personal note for this payment. The receiver will not see this note. If provided, it must be non-empty and no longer than 200 chars / 512 UTF-8 bytes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PayOnchainRequest
impl<'de> Deserialize<'de> for PayOnchainRequest
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 Serialize for PayOnchainRequest
impl Serialize for PayOnchainRequest
Auto Trait Implementations§
impl Freeze for PayOnchainRequest
impl RefUnwindSafe for PayOnchainRequest
impl Send for PayOnchainRequest
impl Sync for PayOnchainRequest
impl Unpin for PayOnchainRequest
impl UnwindSafe for PayOnchainRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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