@@ -502,7 +502,10 @@ pub struct PayOnchainRequest {
502
502
pub struct PrepareRefundRequest {
503
503
/// The address where the swap funds are locked up
504
504
pub swap_address : String ,
505
- /// The address to refund the swap funds to
505
+ /// The Bitcoin address to refund to. To ensure a valid address is
506
+ /// provided, user input should be validated using
507
+ /// [LiquidSdk::parse](crate::sdk::LiquidSdk::parse), and `refund_address`
508
+ /// should be obtained from the [BitcoinAddressData] in [InputType::BitcoinAddress].
506
509
pub refund_address : String ,
507
510
/// The fee rate in sat/vB for the refund transaction
508
511
pub fee_rate_sat_per_vbyte : u32 ,
@@ -521,7 +524,10 @@ pub struct PrepareRefundResponse {
521
524
pub struct RefundRequest {
522
525
/// The address where the swap funds are locked up
523
526
pub swap_address : String ,
524
- /// The address to refund the swap funds to
527
+ /// The Bitcoin address to refund to. To ensure a valid address is
528
+ /// provided, user input should be validated using
529
+ /// [LiquidSdk::parse](crate::sdk::LiquidSdk::parse), and `refund_address`
530
+ /// should be obtained from the [BitcoinAddressData] in [InputType::BitcoinAddress].
525
531
pub refund_address : String ,
526
532
/// The fee rate in sat/vB for the refund transaction
527
533
pub fee_rate_sat_per_vbyte : u32 ,
0 commit comments