curl --request GET \
--url https://api.example.com/api/v1/fees/lightning/pay \
--header 'Authorization: Bearer <token>'{
"fee_sat": 1,
"gross_amount_sat": 1,
"net_amount_sat": 1,
"vtxos_spent": [
"<string>"
]
}Estimates the fee for sending the specified amount over Lightning. The net amount is what the recipient receives. The fee depends on the VTXOs selected and their expiry. If the wallet has insufficient funds, returns a worst-case fee estimate assuming the user acquires enough funds to cover the payment.
curl --request GET \
--url https://api.example.com/api/v1/fees/lightning/pay \
--header 'Authorization: Bearer <token>'{
"fee_sat": 1,
"gross_amount_sat": 1,
"net_amount_sat": 1,
"vtxos_spent": [
"<string>"
]
}Documentation Index
Fetch the complete documentation index at: https://second.tech/docs/llms.txt
Use this file to discover all available pages before exploring further.
Base64url-encoded auth token
The amount in satoshis to send over Lightning
x >= 0Returns the fee estimate
A fee estimate for an Ark wallet operation.
The fee portion (in satoshis)
x >= 0The total amount including fees (in satoshis)
x >= 0The amount excluding fees (in satoshis). For sends, this is the amount the recipient receives. For receives, this is the amount the user gets.
x >= 0The VTXOs that would be spent for this operation
Was this page helpful?