pub struct CreateOfferRequest {
pub inscription_id: String,
pub seller_outpoint: OutPoint,
pub seller_input_address: String,
pub seller_payout_address: String,
pub seller_output_value_sats: u64,
pub ask_sats: u64,
pub fee_rate_sat_vb: u64,
pub created_at_unix: i64,
pub expires_at_unix: i64,
pub nonce: u64,
pub publisher_pubkey_hex: Option<String>,
}Expand description
Input parameters for building an ord-compatible buyer offer.
Fields§
§inscription_id: StringTarget inscription id for the offer.
seller_outpoint: OutPointSeller outpoint containing the inscription.
seller_input_address: StringAddress currently controlling seller_outpoint (used for seller input prevout metadata).
seller_payout_address: StringSeller payout address receiving ask payment + postage.
seller_output_value_sats: u64Value (postage) currently held by the inscription output.
ask_sats: u64Ask amount (in sats) offered to the seller.
fee_rate_sat_vb: u64Desired fee rate (sat/vB).
created_at_unix: i64Offer creation unix timestamp.
expires_at_unix: i64Offer expiration unix timestamp.
nonce: u64Caller-provided nonce.
publisher_pubkey_hex: Option<String>Optional explicit offer publisher x-only pubkey hex.
If omitted, this defaults to the active wallet account taproot pubkey at index 0.
Trait Implementations§
Source§impl Clone for CreateOfferRequest
impl Clone for CreateOfferRequest
Source§fn clone(&self) -> CreateOfferRequest
fn clone(&self) -> CreateOfferRequest
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 moreAuto Trait Implementations§
impl Freeze for CreateOfferRequest
impl RefUnwindSafe for CreateOfferRequest
impl Send for CreateOfferRequest
impl Sync for CreateOfferRequest
impl Unpin for CreateOfferRequest
impl UnsafeUnpin for CreateOfferRequest
impl UnwindSafe for CreateOfferRequest
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