2021-12-08 04:16:40 +01:00
|
|
|
# ------------------------------------------------------
|
|
|
|
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
|
|
|
|
# ------------------------------------------------------
|
|
|
|
|
|
|
|
type AmbossSubscription {
|
|
|
|
end_date: String!
|
|
|
|
subscribed: Boolean!
|
|
|
|
upgradable: Boolean!
|
|
|
|
}
|
|
|
|
|
|
|
|
type AmbossUser {
|
2022-05-05 21:52:20 +02:00
|
|
|
backups: UserBackupInfo!
|
|
|
|
subscription: AmbossSubscription!
|
2021-12-08 04:16:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type AuthResponse {
|
|
|
|
message: String!
|
|
|
|
status: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type Balances {
|
|
|
|
lightning: LightningBalance!
|
|
|
|
onchain: OnChainBalance!
|
|
|
|
}
|
|
|
|
|
|
|
|
type BaseInvoice {
|
|
|
|
id: String!
|
|
|
|
request: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type BaseNode {
|
|
|
|
_id: String
|
|
|
|
name: String
|
|
|
|
public_key: String!
|
|
|
|
socket: String!
|
|
|
|
}
|
|
|
|
|
2023-08-19 23:59:10 +02:00
|
|
|
type BaseNodeInfo {
|
|
|
|
alias: String!
|
|
|
|
public_key: String!
|
|
|
|
}
|
|
|
|
|
2021-12-08 04:16:40 +01:00
|
|
|
type BasePoints {
|
|
|
|
alias: String!
|
|
|
|
amount: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
type BitcoinFee {
|
|
|
|
fast: Float!
|
|
|
|
halfHour: Float!
|
|
|
|
hour: Float!
|
|
|
|
minimum: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
type BoltzInfoType {
|
|
|
|
feePercent: Float!
|
|
|
|
max: Float!
|
|
|
|
min: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
type BoltzSwap {
|
|
|
|
boltz: BoltzSwapStatus
|
|
|
|
id: String
|
|
|
|
}
|
|
|
|
|
|
|
|
type BoltzSwapStatus {
|
|
|
|
status: String!
|
|
|
|
transaction: BoltzSwapTransaction
|
|
|
|
}
|
|
|
|
|
|
|
|
type BoltzSwapTransaction {
|
|
|
|
eta: Float
|
|
|
|
hex: String
|
|
|
|
id: String
|
|
|
|
}
|
|
|
|
|
|
|
|
type BosDecrease {
|
|
|
|
decreased_inbound_on: String!
|
|
|
|
liquidity_inbound: String!
|
2021-12-17 00:26:29 +01:00
|
|
|
liquidity_inbound_opening: String
|
|
|
|
liquidity_inbound_pending: String
|
2021-12-08 04:16:40 +01:00
|
|
|
liquidity_outbound: String!
|
2021-12-17 00:26:29 +01:00
|
|
|
liquidity_outbound_opening: String
|
|
|
|
liquidity_outbound_pending: String
|
2021-12-08 04:16:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type BosIncrease {
|
|
|
|
increased_inbound_on: String!
|
|
|
|
liquidity_inbound: String!
|
2021-12-17 00:26:29 +01:00
|
|
|
liquidity_inbound_opening: String
|
|
|
|
liquidity_inbound_pending: String
|
2021-12-08 04:16:40 +01:00
|
|
|
liquidity_outbound: String!
|
2021-12-17 00:26:29 +01:00
|
|
|
liquidity_outbound_opening: String
|
|
|
|
liquidity_outbound_pending: String
|
2021-12-08 04:16:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type BosRebalanceResult {
|
|
|
|
decrease: BosDecrease
|
|
|
|
increase: BosIncrease
|
|
|
|
result: BosResult
|
|
|
|
}
|
|
|
|
|
|
|
|
type BosResult {
|
|
|
|
rebalance_fees_spent: String!
|
|
|
|
rebalanced: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type ChainAddressSend {
|
|
|
|
confirmationCount: Float!
|
|
|
|
id: String!
|
|
|
|
isConfirmed: Boolean!
|
|
|
|
isOutgoing: Boolean!
|
|
|
|
tokens: Float
|
|
|
|
}
|
|
|
|
|
|
|
|
type ChainTransaction {
|
|
|
|
block_id: String
|
|
|
|
confirmation_count: Float
|
|
|
|
confirmation_height: Float
|
|
|
|
created_at: String!
|
|
|
|
description: String
|
|
|
|
fee: Float
|
|
|
|
id: String!
|
|
|
|
is_confirmed: Boolean!
|
|
|
|
is_outgoing: Boolean!
|
|
|
|
output_addresses: [String!]!
|
|
|
|
tokens: Float!
|
|
|
|
transaction: String
|
|
|
|
}
|
|
|
|
|
|
|
|
type Channel {
|
|
|
|
capacity: Float!
|
|
|
|
channel_age: Float!
|
|
|
|
commit_transaction_fee: Float!
|
|
|
|
commit_transaction_weight: Float!
|
|
|
|
id: String!
|
|
|
|
is_active: Boolean!
|
|
|
|
is_closing: Boolean!
|
|
|
|
is_opening: Boolean!
|
|
|
|
is_partner_initiated: Boolean!
|
|
|
|
is_private: Boolean!
|
|
|
|
local_balance: Float!
|
|
|
|
local_reserve: Float!
|
2022-05-05 16:25:34 +02:00
|
|
|
partner_fee_info: SingleChannel
|
2021-12-08 04:16:40 +01:00
|
|
|
partner_node_info: Node!
|
|
|
|
partner_public_key: String!
|
2022-01-18 17:08:38 +01:00
|
|
|
past_states: Float!
|
2021-12-08 04:16:40 +01:00
|
|
|
pending_payments: [PendingPayment!]!
|
|
|
|
pending_resume: PendingResume!
|
|
|
|
received: Float!
|
|
|
|
remote_balance: Float!
|
|
|
|
remote_reserve: Float!
|
|
|
|
sent: Float!
|
|
|
|
time_offline: Float
|
|
|
|
time_online: Float
|
|
|
|
transaction_id: String!
|
|
|
|
transaction_vout: Float!
|
|
|
|
unsettled_balance: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
type ChannelFeeHealth {
|
2021-12-08 05:37:34 +01:00
|
|
|
id: String
|
|
|
|
mySide: FeeHealth
|
|
|
|
partner: Node
|
|
|
|
partnerSide: FeeHealth
|
2021-12-08 04:16:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type ChannelHealth {
|
2021-12-08 05:37:34 +01:00
|
|
|
averageVolumeNormalized: String
|
|
|
|
id: String
|
|
|
|
partner: Node
|
|
|
|
score: Float
|
|
|
|
volumeNormalized: String
|
2021-12-08 04:16:40 +01:00
|
|
|
}
|
|
|
|
|
2023-08-19 23:59:10 +02:00
|
|
|
type ChannelInfo {
|
|
|
|
node1_info: BaseNodeInfo!
|
|
|
|
node2_info: BaseNodeInfo!
|
|
|
|
}
|
|
|
|
|
2021-12-08 04:16:40 +01:00
|
|
|
type ChannelReport {
|
|
|
|
commit: Float!
|
|
|
|
incomingPendingHtlc: Float!
|
|
|
|
local: Float!
|
|
|
|
maxIn: Float!
|
|
|
|
maxOut: Float!
|
|
|
|
outgoingPendingHtlc: Float!
|
|
|
|
remote: Float!
|
|
|
|
totalPendingHtlc: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
type ChannelRequest {
|
|
|
|
callback: String
|
|
|
|
k1: String
|
|
|
|
tag: String
|
|
|
|
uri: String
|
|
|
|
}
|
|
|
|
|
|
|
|
type ChannelTimeHealth {
|
2021-12-08 05:37:34 +01:00
|
|
|
id: String
|
|
|
|
monitoredDowntime: Float
|
|
|
|
monitoredTime: Float
|
|
|
|
monitoredUptime: Float
|
|
|
|
partner: Node
|
|
|
|
score: Float
|
|
|
|
significant: Boolean
|
2021-12-08 04:16:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type ChannelsFeeHealth {
|
2021-12-08 05:37:34 +01:00
|
|
|
channels: [ChannelFeeHealth!]
|
|
|
|
score: Float
|
2021-12-08 04:16:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type ChannelsHealth {
|
2021-12-08 05:37:34 +01:00
|
|
|
channels: [ChannelHealth!]
|
|
|
|
score: Float
|
2021-12-08 04:16:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type ChannelsTimeHealth {
|
2021-12-08 05:37:34 +01:00
|
|
|
channels: [ChannelTimeHealth!]
|
|
|
|
score: Float
|
2021-12-08 04:16:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type ClosedChannel {
|
|
|
|
capacity: Float!
|
2022-01-18 17:08:38 +01:00
|
|
|
channel_age: Float
|
2021-12-08 04:16:40 +01:00
|
|
|
close_confirm_height: Float
|
|
|
|
close_transaction_id: String
|
2022-01-18 17:08:38 +01:00
|
|
|
closed_for_blocks: Float
|
2021-12-08 04:16:40 +01:00
|
|
|
final_local_balance: Float!
|
|
|
|
final_time_locked_balance: Float!
|
|
|
|
id: String
|
|
|
|
is_breach_close: Boolean!
|
|
|
|
is_cooperative_close: Boolean!
|
|
|
|
is_funding_cancel: Boolean!
|
|
|
|
is_local_force_close: Boolean!
|
|
|
|
is_remote_force_close: Boolean!
|
|
|
|
partner_node_info: Node!
|
|
|
|
partner_public_key: String!
|
|
|
|
transaction_id: String!
|
|
|
|
transaction_vout: Float!
|
|
|
|
}
|
|
|
|
|
2022-08-07 21:27:05 +02:00
|
|
|
enum ConfigFields {
|
|
|
|
BACKUPS
|
|
|
|
CHANNELS_PUSH
|
|
|
|
HEALTHCHECKS
|
|
|
|
ONCHAIN_PUSH
|
|
|
|
PRIVATE_CHANNELS_PUSH
|
|
|
|
}
|
|
|
|
|
2022-07-05 01:15:12 +02:00
|
|
|
type ConfigState {
|
|
|
|
backup_state: Boolean!
|
2022-08-07 21:27:05 +02:00
|
|
|
channels_push_enabled: Boolean!
|
2022-07-05 01:15:12 +02:00
|
|
|
healthcheck_ping_state: Boolean!
|
2022-08-07 21:27:05 +02:00
|
|
|
onchain_push_enabled: Boolean!
|
|
|
|
private_channels_push_enabled: Boolean!
|
2022-07-05 01:15:12 +02:00
|
|
|
}
|
|
|
|
|
2021-12-08 04:16:40 +01:00
|
|
|
type CreateBoltzReverseSwapType {
|
|
|
|
decodedInvoice: DecodeInvoice
|
|
|
|
id: String!
|
|
|
|
invoice: String!
|
|
|
|
lockupAddress: String!
|
|
|
|
minerFeeInvoice: String
|
|
|
|
onchainAmount: Float!
|
|
|
|
preimage: String
|
|
|
|
preimageHash: String
|
|
|
|
privateKey: String
|
|
|
|
publicKey: String
|
|
|
|
receivingAddress: String!
|
|
|
|
redeemScript: String!
|
|
|
|
timeoutBlockHeight: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
type CreateInvoice {
|
|
|
|
chain_address: String
|
|
|
|
created_at: String!
|
|
|
|
description: String!
|
|
|
|
id: String!
|
|
|
|
mtokens: String
|
|
|
|
request: String!
|
|
|
|
secret: String!
|
|
|
|
tokens: Float
|
|
|
|
}
|
|
|
|
|
|
|
|
type CreateMacaroon {
|
|
|
|
base: String!
|
|
|
|
hex: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type DecodeInvoice {
|
|
|
|
chain_address: String
|
|
|
|
cltv_delta: Float
|
|
|
|
description: String!
|
|
|
|
description_hash: String
|
|
|
|
destination: String!
|
|
|
|
destination_node: Node
|
|
|
|
expires_at: String!
|
|
|
|
id: String!
|
|
|
|
mtokens: String!
|
|
|
|
payment: String
|
|
|
|
routes: [[Route!]!]!
|
|
|
|
safe_tokens: Float!
|
|
|
|
tokens: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
type FeeHealth {
|
2021-12-08 05:37:34 +01:00
|
|
|
base: String
|
|
|
|
baseOver: Boolean
|
|
|
|
baseScore: Float
|
|
|
|
rate: Float
|
|
|
|
rateOver: Boolean
|
|
|
|
rateScore: Float
|
|
|
|
score: Float
|
2021-12-08 04:16:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type Forward {
|
|
|
|
created_at: String!
|
|
|
|
fee: Float!
|
|
|
|
fee_mtokens: String!
|
|
|
|
incoming_channel: String!
|
2023-08-19 23:59:10 +02:00
|
|
|
incoming_channel_info: ChannelInfo
|
2021-12-08 04:16:40 +01:00
|
|
|
mtokens: String!
|
|
|
|
outgoing_channel: String!
|
2023-08-19 23:59:10 +02:00
|
|
|
outgoing_channel_info: ChannelInfo
|
2021-12-08 04:16:40 +01:00
|
|
|
tokens: Float!
|
|
|
|
}
|
|
|
|
|
2022-01-28 11:00:13 +01:00
|
|
|
type GetInvoicesType {
|
|
|
|
invoices: [InvoiceType!]!
|
|
|
|
next: String
|
|
|
|
}
|
|
|
|
|
2021-12-08 04:16:40 +01:00
|
|
|
type GetMessages {
|
|
|
|
messages: [Message!]!
|
|
|
|
token: String
|
|
|
|
}
|
|
|
|
|
2022-01-28 11:00:13 +01:00
|
|
|
type GetPaymentsType {
|
|
|
|
next: String
|
|
|
|
payments: [PaymentType!]!
|
2021-12-08 04:16:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type Hops {
|
|
|
|
channel: String!
|
|
|
|
channel_capacity: Float!
|
|
|
|
fee_mtokens: String!
|
|
|
|
forward_mtokens: String!
|
|
|
|
timeout: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
type InvoicePayment {
|
2022-12-06 20:51:51 +01:00
|
|
|
canceled_at: String
|
|
|
|
confirmed_at: String
|
|
|
|
created_at: String!
|
|
|
|
created_height: Float!
|
2021-12-08 04:16:40 +01:00
|
|
|
in_channel: String!
|
2022-12-06 20:51:51 +01:00
|
|
|
is_canceled: Boolean!
|
|
|
|
is_confirmed: Boolean!
|
|
|
|
is_held: Boolean!
|
2021-12-08 04:16:40 +01:00
|
|
|
messages: MessageType
|
2022-12-06 20:51:51 +01:00
|
|
|
mtokens: String!
|
|
|
|
pending_index: Float
|
|
|
|
timeout: Float!
|
|
|
|
tokens: Float!
|
|
|
|
total_mtokens: String
|
2021-12-08 04:16:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type InvoiceType {
|
|
|
|
chain_address: String
|
|
|
|
confirmed_at: String
|
2021-12-10 17:01:13 +01:00
|
|
|
created_at: String!
|
2021-12-08 04:16:40 +01:00
|
|
|
date: String!
|
|
|
|
description: String!
|
|
|
|
description_hash: String
|
|
|
|
expires_at: String!
|
|
|
|
id: String!
|
|
|
|
is_canceled: Boolean
|
|
|
|
is_confirmed: Boolean!
|
|
|
|
is_held: Boolean
|
|
|
|
is_private: Boolean!
|
|
|
|
is_push: Boolean
|
|
|
|
payments: [InvoicePayment!]!
|
2021-12-10 17:01:13 +01:00
|
|
|
received: Float!
|
2021-12-08 04:16:40 +01:00
|
|
|
received_mtokens: String!
|
|
|
|
request: String
|
|
|
|
secret: String!
|
|
|
|
tokens: String!
|
|
|
|
type: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type LightningAddress {
|
|
|
|
lightning_address: String!
|
|
|
|
pubkey: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type LightningBalance {
|
|
|
|
active: String!
|
|
|
|
commit: String!
|
|
|
|
confirmed: String!
|
|
|
|
pending: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type LightningNodeSocialInfo {
|
|
|
|
socials: NodeSocial
|
|
|
|
}
|
|
|
|
|
|
|
|
type LnMarketsUserInfo {
|
|
|
|
account_type: String
|
|
|
|
balance: String
|
|
|
|
last_ip: String
|
|
|
|
linkingpublickey: String
|
|
|
|
uid: String
|
|
|
|
username: String
|
|
|
|
}
|
|
|
|
|
|
|
|
union LnUrlRequest = ChannelRequest | PayRequest | WithdrawRequest
|
|
|
|
|
|
|
|
type Message {
|
|
|
|
alias: String
|
|
|
|
contentType: String
|
|
|
|
date: String!
|
|
|
|
id: String!
|
|
|
|
message: String
|
|
|
|
sender: String
|
|
|
|
tokens: Float
|
|
|
|
verified: Boolean!
|
|
|
|
}
|
|
|
|
|
|
|
|
type MessageType {
|
|
|
|
message: String
|
|
|
|
}
|
|
|
|
|
|
|
|
type Mutation {
|
|
|
|
addPeer(isTemporary: Boolean, publicKey: String, socket: String, url: String): Boolean!
|
|
|
|
bosRebalance(avoid: [String!], in_through: String, max_fee: Float, max_fee_rate: Float, max_rebalance: Float, node: String, out_inbound: Float, out_through: String, timeout_minutes: Float): BosRebalanceResult!
|
|
|
|
claimBoltzTransaction(destination: String!, fee: Float!, preimage: String!, privateKey: String!, redeem: String!, transaction: String!): String!
|
|
|
|
closeChannel(forceClose: Boolean, id: String!, targetConfirmations: Float, tokensPerVByte: Float): OpenOrCloseChannel!
|
2023-07-05 23:26:47 +02:00
|
|
|
createAddress(type: String! = "p2tr"): String!
|
2021-12-08 04:16:40 +01:00
|
|
|
createBaseInvoice(amount: Float!): BaseInvoice!
|
|
|
|
createBoltzReverseSwap(address: String, amount: Float!): CreateBoltzReverseSwapType!
|
|
|
|
createInvoice(amount: Float!, description: String, includePrivate: Boolean, secondsUntil: Float): CreateInvoice!
|
|
|
|
createMacaroon(permissions: NetworkInfoInput!): CreateMacaroon!
|
|
|
|
createThunderPoints(alias: String!, id: String!, public_key: String!, uris: [String!]!): Boolean!
|
|
|
|
fetchLnUrl(url: String!): LnUrlRequest!
|
|
|
|
getAuthToken(cookie: String): Boolean!
|
2021-12-16 23:26:38 +01:00
|
|
|
getSessionToken(id: String!, password: String!, token: String): String!
|
2021-12-08 04:16:40 +01:00
|
|
|
keysend(destination: String, tokens: Float!): PayInvoice!
|
|
|
|
lnMarketsDeposit(amount: Float!): Boolean!
|
|
|
|
lnMarketsLogin: AuthResponse!
|
|
|
|
lnMarketsLogout: Boolean!
|
|
|
|
lnMarketsWithdraw(amount: Float!): Boolean!
|
|
|
|
lnUrlAuth(url: String!): AuthResponse!
|
|
|
|
lnUrlChannel(callback: String!, k1: String!, uri: String!): String!
|
|
|
|
lnUrlPay(amount: Float!, callback: String!, comment: String): PaySuccess!
|
|
|
|
lnUrlWithdraw(amount: Float!, callback: String!, description: String, k1: String!): String!
|
|
|
|
loginAmboss: Boolean!
|
|
|
|
logout: Boolean!
|
2023-07-25 15:32:14 +02:00
|
|
|
openChannel(input: OpenChannelParams!): OpenOrCloseChannel!
|
2021-12-08 04:16:40 +01:00
|
|
|
pay(max_fee: Float!, max_paths: Float!, out: [String!], request: String!): Boolean!
|
2022-05-05 21:52:20 +02:00
|
|
|
pushBackup: Boolean!
|
2021-12-08 04:16:40 +01:00
|
|
|
removePeer(publicKey: String): Boolean!
|
2021-12-16 23:26:38 +01:00
|
|
|
removeTwofaSecret(token: String!): Boolean!
|
2021-12-08 04:16:40 +01:00
|
|
|
sendMessage(maxFee: Float, message: String!, messageType: String, publicKey: String!, tokens: Float): Float!
|
|
|
|
sendToAddress(address: String!, fee: Float, sendAll: Boolean, target: Float, tokens: Float): ChainAddressSend!
|
2022-08-07 21:27:05 +02:00
|
|
|
toggleConfig(field: ConfigFields!): Boolean!
|
2021-12-08 04:16:40 +01:00
|
|
|
updateFees(base_fee_tokens: Float, cltv_delta: Float, fee_rate: Float, max_htlc_mtokens: String, min_htlc_mtokens: String, transaction_id: String, transaction_vout: Float): Boolean!
|
|
|
|
updateMultipleFees(channels: [UpdateRoutingFeesParams!]!): Boolean!
|
2021-12-16 23:26:38 +01:00
|
|
|
updateTwofaSecret(secret: String!, token: String!): Boolean!
|
2021-12-08 04:16:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type NetworkInfo {
|
|
|
|
averageChannelSize: Float!
|
|
|
|
channelCount: Float!
|
|
|
|
maxChannelSize: Float!
|
|
|
|
medianChannelSize: Float!
|
|
|
|
minChannelSize: Float!
|
|
|
|
nodeCount: Float!
|
|
|
|
notRecentlyUpdatedPolicyCount: Float!
|
|
|
|
totalCapacity: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
input NetworkInfoInput {
|
|
|
|
is_ok_to_adjust_peers: Boolean!
|
|
|
|
is_ok_to_create_chain_addresses: Boolean!
|
|
|
|
is_ok_to_create_invoices: Boolean!
|
|
|
|
is_ok_to_create_macaroons: Boolean!
|
|
|
|
is_ok_to_derive_keys: Boolean!
|
2022-01-28 11:00:13 +01:00
|
|
|
is_ok_to_get_access_ids: Boolean!
|
2021-12-08 04:16:40 +01:00
|
|
|
is_ok_to_get_chain_transactions: Boolean!
|
|
|
|
is_ok_to_get_invoices: Boolean!
|
|
|
|
is_ok_to_get_payments: Boolean!
|
|
|
|
is_ok_to_get_peers: Boolean!
|
|
|
|
is_ok_to_get_wallet_info: Boolean!
|
|
|
|
is_ok_to_pay: Boolean!
|
2022-01-28 11:00:13 +01:00
|
|
|
is_ok_to_revoke_access_ids: Boolean!
|
2021-12-08 04:16:40 +01:00
|
|
|
is_ok_to_send_to_chain_addresses: Boolean!
|
|
|
|
is_ok_to_sign_bytes: Boolean!
|
|
|
|
is_ok_to_sign_messages: Boolean!
|
|
|
|
is_ok_to_stop_daemon: Boolean!
|
|
|
|
is_ok_to_verify_bytes_signatures: Boolean!
|
|
|
|
is_ok_to_verify_messages: Boolean!
|
|
|
|
}
|
|
|
|
|
|
|
|
type Node {
|
2022-01-18 17:08:38 +01:00
|
|
|
node: NodeType
|
2021-12-08 04:16:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type NodeInfo {
|
|
|
|
active_channels_count: Float!
|
|
|
|
alias: String!
|
|
|
|
chains: [String!]!
|
|
|
|
closed_channels_count: Float!
|
|
|
|
color: String!
|
|
|
|
current_block_hash: String!
|
|
|
|
current_block_height: Float!
|
|
|
|
is_synced_to_chain: Boolean!
|
|
|
|
is_synced_to_graph: Boolean!
|
|
|
|
latest_block_at: String!
|
|
|
|
peers_count: Float!
|
|
|
|
pending_channels_count: Float!
|
|
|
|
public_key: String!
|
|
|
|
uris: [String!]!
|
|
|
|
version: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type NodePolicy {
|
|
|
|
base_fee_mtokens: String
|
|
|
|
cltv_delta: Float
|
|
|
|
fee_rate: Float
|
|
|
|
is_disabled: Boolean
|
|
|
|
max_htlc_mtokens: String
|
|
|
|
min_htlc_mtokens: String
|
|
|
|
node: Node
|
|
|
|
updated_at: String
|
|
|
|
}
|
|
|
|
|
|
|
|
type NodeSocial {
|
|
|
|
info: NodeSocialInfo
|
|
|
|
}
|
|
|
|
|
|
|
|
type NodeSocialInfo {
|
|
|
|
email: String
|
|
|
|
private: Boolean
|
|
|
|
telegram: String
|
|
|
|
twitter: String
|
|
|
|
twitter_verified: Boolean
|
|
|
|
website: String
|
|
|
|
}
|
|
|
|
|
|
|
|
type NodeType {
|
|
|
|
alias: String!
|
2022-01-18 17:08:38 +01:00
|
|
|
public_key: String!
|
2021-12-08 04:16:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type OnChainBalance {
|
|
|
|
closing: String!
|
|
|
|
confirmed: String!
|
|
|
|
pending: String!
|
|
|
|
}
|
|
|
|
|
2023-07-25 15:32:14 +02:00
|
|
|
input OpenChannelParams {
|
|
|
|
base_fee_mtokens: String
|
|
|
|
chain_fee_tokens_per_vbyte: Float
|
|
|
|
channel_size: Float
|
|
|
|
fee_rate: Float
|
|
|
|
give_tokens: Float = 0
|
|
|
|
is_max_funding: Boolean
|
|
|
|
is_private: Boolean
|
|
|
|
partner_public_key: String!
|
|
|
|
}
|
|
|
|
|
2021-12-08 04:16:40 +01:00
|
|
|
type OpenOrCloseChannel {
|
|
|
|
transactionId: String!
|
|
|
|
transactionOutputIndex: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type PayInvoice {
|
|
|
|
fee: Float!
|
|
|
|
fee_mtokens: String!
|
|
|
|
hops: [Hops!]!
|
|
|
|
id: String!
|
|
|
|
is_confirmed: Boolean!
|
|
|
|
is_outgoing: Boolean!
|
|
|
|
mtokens: String!
|
|
|
|
safe_fee: Float!
|
|
|
|
safe_tokens: Float!
|
|
|
|
secret: String!
|
|
|
|
tokens: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
type PayRequest {
|
|
|
|
callback: String
|
|
|
|
commentAllowed: Float
|
|
|
|
maxSendable: String
|
|
|
|
metadata: String
|
|
|
|
minSendable: String
|
|
|
|
tag: String
|
|
|
|
}
|
|
|
|
|
|
|
|
type PaySuccess {
|
|
|
|
ciphertext: String
|
|
|
|
description: String
|
|
|
|
iv: String
|
|
|
|
message: String
|
|
|
|
tag: String
|
|
|
|
url: String
|
|
|
|
}
|
|
|
|
|
|
|
|
type PaymentType {
|
2021-12-10 17:01:13 +01:00
|
|
|
created_at: String!
|
2021-12-08 04:16:40 +01:00
|
|
|
date: String!
|
|
|
|
destination: String!
|
|
|
|
destination_node: Node!
|
|
|
|
fee: Float!
|
|
|
|
fee_mtokens: String!
|
|
|
|
hops: [Node!]!
|
|
|
|
id: String!
|
|
|
|
index: Float
|
|
|
|
is_confirmed: Boolean!
|
|
|
|
is_outgoing: Boolean!
|
|
|
|
mtokens: String!
|
|
|
|
request: String
|
|
|
|
safe_fee: Float!
|
|
|
|
safe_tokens: Float
|
|
|
|
secret: String!
|
|
|
|
tokens: String!
|
|
|
|
type: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type Peer {
|
|
|
|
bytes_received: Float!
|
|
|
|
bytes_sent: Float!
|
|
|
|
is_inbound: Boolean!
|
|
|
|
is_sync_peer: Boolean
|
|
|
|
partner_node_info: Node!
|
|
|
|
ping_time: Float!
|
|
|
|
public_key: String!
|
|
|
|
socket: String!
|
|
|
|
tokens_received: Float!
|
|
|
|
tokens_sent: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
type PendingChannel {
|
|
|
|
close_transaction_id: String
|
|
|
|
is_active: Boolean!
|
|
|
|
is_closing: Boolean!
|
|
|
|
is_opening: Boolean!
|
|
|
|
is_timelocked: Boolean!
|
|
|
|
local_balance: Float!
|
|
|
|
local_reserve: Float!
|
|
|
|
partner_node_info: Node!
|
|
|
|
partner_public_key: String!
|
|
|
|
received: Float!
|
|
|
|
remote_balance: Float!
|
|
|
|
remote_reserve: Float!
|
|
|
|
sent: Float!
|
|
|
|
timelock_blocks: Float
|
|
|
|
timelock_expiration: Float
|
|
|
|
transaction_fee: Float
|
|
|
|
transaction_id: String!
|
|
|
|
transaction_vout: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
type PendingPayment {
|
|
|
|
id: String!
|
|
|
|
is_outgoing: Boolean!
|
|
|
|
timeout: Float!
|
|
|
|
tokens: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
type PendingResume {
|
|
|
|
incoming_amount: Float!
|
|
|
|
incoming_tokens: Float!
|
|
|
|
outgoing_amount: Float!
|
|
|
|
outgoing_tokens: Float!
|
|
|
|
total_amount: Float!
|
|
|
|
total_tokens: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
type Policy {
|
|
|
|
base_fee_mtokens: String
|
|
|
|
cltv_delta: Float
|
|
|
|
fee_rate: Float
|
|
|
|
is_disabled: Boolean
|
|
|
|
max_htlc_mtokens: String
|
|
|
|
min_htlc_mtokens: String
|
|
|
|
public_key: String!
|
|
|
|
updated_at: String
|
|
|
|
}
|
|
|
|
|
|
|
|
type Query {
|
|
|
|
decodeRequest(request: String!): DecodeInvoice!
|
|
|
|
getAccount: ServerAccount!
|
|
|
|
getAccountingReport(category: String, currency: String, fiat: String, month: String, year: String): String!
|
|
|
|
getAmbossLoginToken: String!
|
|
|
|
getAmbossUser: AmbossUser
|
|
|
|
getBackups: String!
|
|
|
|
getBaseCanConnect: Boolean!
|
|
|
|
getBaseNodes: [BaseNode!]!
|
|
|
|
getBasePoints: [BasePoints!]!
|
|
|
|
getBitcoinFees: BitcoinFee!
|
|
|
|
getBitcoinPrice: String!
|
|
|
|
getBoltzInfo: BoltzInfoType!
|
|
|
|
getBoltzSwapStatus(ids: [String!]!): [BoltzSwap!]!
|
|
|
|
getChainTransactions: [ChainTransaction!]!
|
2022-01-18 17:08:38 +01:00
|
|
|
getChannel(id: String!): SingleChannel!
|
2021-12-08 04:16:40 +01:00
|
|
|
getChannelReport: ChannelReport!
|
|
|
|
getChannels(active: Boolean): [Channel!]!
|
|
|
|
getClosedChannels: [ClosedChannel!]!
|
2022-07-05 01:15:12 +02:00
|
|
|
getConfigState: ConfigState!
|
2021-12-08 04:16:40 +01:00
|
|
|
getFeeHealth: ChannelsFeeHealth!
|
|
|
|
getForwards(days: Float!): [Forward!]!
|
|
|
|
getHello: String!
|
|
|
|
getInvoiceStatusChange(id: String!): String!
|
2022-01-28 11:00:13 +01:00
|
|
|
getInvoices(token: String): GetInvoicesType!
|
2021-12-08 04:16:40 +01:00
|
|
|
getLatestVersion: String!
|
|
|
|
getLightningAddressInfo(address: String!): PayRequest!
|
|
|
|
getLightningAddresses: [LightningAddress!]!
|
|
|
|
getLnMarketsStatus: String!
|
|
|
|
getLnMarketsUrl: String!
|
|
|
|
getLnMarketsUserInfo: LnMarketsUserInfo!
|
|
|
|
getMessages(initialize: Boolean): GetMessages!
|
|
|
|
getNetworkInfo: NetworkInfo!
|
|
|
|
getNode(publicKey: String!, withoutChannels: Boolean): Node!
|
|
|
|
getNodeBalances: Balances!
|
|
|
|
getNodeInfo: NodeInfo!
|
|
|
|
getNodeSocialInfo(pubkey: String!): LightningNodeSocialInfo!
|
2022-01-28 11:00:13 +01:00
|
|
|
getPayments(token: String): GetPaymentsType!
|
2021-12-08 04:16:40 +01:00
|
|
|
getPeers: [Peer!]!
|
|
|
|
getPendingChannels: [PendingChannel!]!
|
|
|
|
getServerAccounts: [ServerAccount!]!
|
|
|
|
getTimeHealth: ChannelsTimeHealth!
|
2021-12-16 23:26:38 +01:00
|
|
|
getTwofaSecret: TwofaResult!
|
2021-12-08 04:16:40 +01:00
|
|
|
getUtxos: [Utxo!]!
|
|
|
|
getVolumeHealth: ChannelsHealth!
|
|
|
|
getWalletInfo: Wallet!
|
|
|
|
recoverFunds(backup: String!): Boolean!
|
|
|
|
signMessage(message: String!): String!
|
2022-02-01 21:34:19 +01:00
|
|
|
verifyBackup(backup: String!): Boolean!
|
2021-12-08 04:16:40 +01:00
|
|
|
verifyBackups(backup: String!): Boolean!
|
|
|
|
verifyMessage(message: String!, signature: String!): String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type Route {
|
|
|
|
base_fee_mtokens: String
|
|
|
|
channel: String
|
|
|
|
cltv_delta: Float
|
|
|
|
fee_rate: Float
|
|
|
|
public_key: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type ServerAccount {
|
|
|
|
id: String!
|
|
|
|
loggedIn: Boolean!
|
|
|
|
name: String!
|
2021-12-16 23:26:38 +01:00
|
|
|
twofaEnabled: Boolean!
|
2021-12-08 04:16:40 +01:00
|
|
|
type: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type SingleChannel {
|
|
|
|
capacity: Float!
|
|
|
|
id: String!
|
|
|
|
node_policies: NodePolicy
|
|
|
|
partner_node_policies: NodePolicy
|
|
|
|
policies: [Policy!]!
|
|
|
|
transaction_id: String!
|
|
|
|
transaction_vout: Float!
|
|
|
|
updated_at: String
|
|
|
|
}
|
|
|
|
|
2021-12-16 23:26:38 +01:00
|
|
|
type TwofaResult {
|
|
|
|
secret: String!
|
|
|
|
url: String!
|
|
|
|
}
|
|
|
|
|
2021-12-08 04:16:40 +01:00
|
|
|
input UpdateRoutingFeesParams {
|
|
|
|
base_fee_mtokens: String
|
|
|
|
base_fee_tokens: Float
|
|
|
|
cltv_delta: Float
|
|
|
|
fee_rate: Float
|
|
|
|
max_htlc_mtokens: String
|
|
|
|
min_htlc_mtokens: String
|
|
|
|
transaction_id: String
|
|
|
|
transaction_vout: Float
|
|
|
|
}
|
|
|
|
|
2022-05-05 21:52:20 +02:00
|
|
|
type UserBackupInfo {
|
|
|
|
available_size: String!
|
|
|
|
last_update: String
|
|
|
|
last_update_size: String
|
|
|
|
remaining_size: String!
|
|
|
|
total_size_saved: String!
|
|
|
|
}
|
|
|
|
|
2021-12-08 04:16:40 +01:00
|
|
|
type Utxo {
|
|
|
|
address: String!
|
|
|
|
address_format: String!
|
|
|
|
confirmation_count: Float!
|
|
|
|
output_script: String!
|
|
|
|
tokens: Float!
|
|
|
|
transaction_id: String!
|
|
|
|
transaction_vout: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
type Wallet {
|
|
|
|
build_tags: [String!]!
|
|
|
|
commit_hash: String!
|
|
|
|
is_autopilotrpc_enabled: Boolean!
|
|
|
|
is_chainrpc_enabled: Boolean!
|
|
|
|
is_invoicesrpc_enabled: Boolean!
|
|
|
|
is_signrpc_enabled: Boolean!
|
|
|
|
is_walletrpc_enabled: Boolean!
|
|
|
|
is_watchtowerrpc_enabled: Boolean!
|
|
|
|
is_wtclientrpc_enabled: Boolean!
|
|
|
|
}
|
|
|
|
|
|
|
|
type WithdrawRequest {
|
|
|
|
callback: String
|
|
|
|
defaultDescription: String
|
|
|
|
k1: String
|
|
|
|
maxWithdrawable: String
|
|
|
|
minWithdrawable: String
|
|
|
|
tag: String
|
2022-06-23 16:11:29 +02:00
|
|
|
}
|