lightspark 0.10.2

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

#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct CreateTestModePaymentInput {
    /// The node to where you want to send the payment.
    pub local_node_id: String,

    /// The invoice you want to be paid (as defined by the BOLT11 standard).
    pub encoded_invoice: String,

    /// The amount you will be paid for this invoice, expressed in msats. It should ONLY be set when the invoice amount is zero.
    pub amount_msats: Option<i64>,
}