lightspark 0.10.2

Lightspark Rust SDK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
use crate::objects::withdrawal_mode::WithdrawalMode;
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct WithdrawalFeeEstimateInput {
    /// The node from which you'd like to make the withdrawal.
    pub node_id: String,

    /// The amount you want to withdraw from this node in Satoshis. Use the special value -1 to withdrawal all funds from this node.
    pub amount_sats: i64,

    /// The strategy that should be used to withdraw the funds from this node.
    pub withdrawal_mode: WithdrawalMode,
}