pub struct OfferDlc {Show 16 fields
pub protocol_version: u32,
pub contract_flags: u8,
pub chain_hash: [u8; 32],
pub temporary_contract_id: [u8; 32],
pub contract_info: ContractInfo,
pub funding_pubkey: PublicKey,
pub payout_spk: ScriptBuf,
pub payout_serial_id: u64,
pub offer_collateral: Amount,
pub funding_inputs: Vec<FundingInput>,
pub change_spk: ScriptBuf,
pub change_serial_id: u64,
pub fund_output_serial_id: u64,
pub fee_rate_per_vb: u64,
pub cet_locktime: u32,
pub refund_locktime: u32,
}Expand description
Contains information about a party wishing to enter into a DLC with another party. The contained information is sufficient for any other party to create a set of transactions representing the contract and its terms.
Fields§
§protocol_version: u32The version of the protocol used by the peer.
contract_flags: u8Feature flags to be used for the offered contract.
chain_hash: [u8; 32]The identifier of the chain on which the contract will be settled.
temporary_contract_id: [u8; 32]Temporary contract id to identify the contract.
contract_info: ContractInfoInformation about the contract event, payouts and oracles.
funding_pubkey: PublicKeyThe public key of the offerer to be used to lock the collateral.
payout_spk: ScriptBufThe SPK where the offerer will receive their payout.
payout_serial_id: u64Serial id to order CET outputs.
offer_collateral: AmountCollateral of the offer party.
funding_inputs: Vec<FundingInput>Inputs used by the offer party to fund the contract.
change_spk: ScriptBufThe SPK where the offer party will receive their change.
change_serial_id: u64Serial id to order funding transaction outputs.
fund_output_serial_id: u64Serial id to order funding transaction outputs.
fee_rate_per_vb: u64The fee rate to use to compute transaction fees for this contract.
cet_locktime: u32The lock time for the CETs.
refund_locktime: u32The lock time for the refund transactions.