pub struct IBtOrder {Show 23 fields
pub id: String,
pub state: BtOrderState,
pub state2: BtOrderState2,
pub fee_sat: u64,
pub network_fee_sat: u64,
pub service_fee_sat: u64,
pub lsp_balance_sat: u64,
pub client_balance_sat: u64,
pub zero_conf: bool,
pub zero_reserve: bool,
pub client_node_id: Option<String>,
pub channel_expiry_weeks: u32,
pub channel_expires_at: String,
pub order_expires_at: String,
pub channel: Option<IBtChannel>,
pub lsp_node: ILspNode,
pub lnurl: Option<String>,
pub payment: IBtPayment,
pub coupon_code: Option<String>,
pub source: Option<String>,
pub discount: Option<IDiscount>,
pub updated_at: String,
pub created_at: String,
}
Fields§
§id: String
§state: BtOrderState
@deprecated Will be removed in future releases. Use state2 instead.
state2: BtOrderState2
State of the order
fee_sat: u64
Fees in satoshi to pay before the channel open is possible.
network_fee_sat: u64
Onchain transaction fees for the channel open. This is variable depending on the network fee conditions.
service_fee_sat: u64
Service fees to pay for us to fulfill the channel open. Includes liquidity fees.
lsp_balance_sat: u64
§client_balance_sat: u64
Requested funds on the client side.
zero_conf: bool
If this the channel should be a turbo channel.
zero_reserve: bool
If the LSP allows the client to have a minimal channel reserve.
client_node_id: Option<String>
Node id to notify in case the node is offline and the order is ready to open the channel.
channel_expiry_weeks: u32
Weeks how long Blocktank guarantees to keep the channel open.
channel_expires_at: String
How long Blocktank guarantees to keep the channel open.
order_expires_at: String
How long the order with its proposed feeSat is valid for.
channel: Option<IBtChannel>
Channel in case the order has been executed.
lsp_node: ILspNode
Node if of the LSP that will/has opened the channel.
lnurl: Option<String>
LNURL to open the channel.
payment: IBtPayment
Payment object showing invoices and the status of the payment.
coupon_code: Option<String>
@deprecated Use the source
field.
source: Option<String>
Source what created this order. Example: bitkit, widget
discount: Option<IDiscount>
Discount if discount was given.
updated_at: String
§created_at: String