@lightsparkdev/lightspark-sdk 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/.fossa.yml +6 -0
  2. package/.prettierrc +1 -0
  3. package/.turbo/turbo-build.log +19 -0
  4. package/.turbo/turbo-lint.log +3 -0
  5. package/CHANGELOG.md +49 -0
  6. package/LICENSE +201 -0
  7. package/README.md +137 -0
  8. package/dist/Withdrawal-17e1c8af.d.ts +1672 -0
  9. package/dist/Withdrawal-27a4d10d.d.ts +1672 -0
  10. package/dist/chunk-3VRI7CHE.js +5508 -0
  11. package/dist/chunk-AGEUDR2V.js +4498 -0
  12. package/dist/chunk-N27QHRE4.js +5508 -0
  13. package/dist/client-3bba3f64.d.ts +1302 -0
  14. package/dist/index.cjs +6633 -0
  15. package/dist/index.d.ts +15 -0
  16. package/dist/index.js +1177 -0
  17. package/dist/objects/index.cjs +5347 -0
  18. package/dist/objects/index.d.ts +3 -0
  19. package/dist/objects/index.js +88 -0
  20. package/examples/node-scripts/authHelpers.ts +20 -0
  21. package/examples/node-scripts/createInvoice.ts +64 -0
  22. package/examples/node-scripts/example.ts +288 -0
  23. package/examples/node-scripts/getAccountDashboard.ts +24 -0
  24. package/examples/node-scripts/getNodeChannels.ts +34 -0
  25. package/examples/node-scripts/internalAuthHelpers.ts +26 -0
  26. package/examples/node-scripts/internal_example.ts +296 -0
  27. package/examples/node-scripts/package-lock.json +887 -0
  28. package/examples/node-scripts/package.json +22 -0
  29. package/examples/node-scripts/prettyPrintJsonForDocs.ts +62 -0
  30. package/examples/node-scripts/tsconfig.json +27 -0
  31. package/examples/oauth-example/README.md +19 -0
  32. package/examples/oauth-example/package-lock.json +16071 -0
  33. package/examples/oauth-example/package.json +50 -0
  34. package/examples/oauth-example/public/favicon.ico +0 -0
  35. package/examples/oauth-example/public/index.html +43 -0
  36. package/examples/oauth-example/public/logo192.png +0 -0
  37. package/examples/oauth-example/public/logo512.png +0 -0
  38. package/examples/oauth-example/public/manifest.json +25 -0
  39. package/examples/oauth-example/public/robots.txt +3 -0
  40. package/examples/oauth-example/src/App.css +7 -0
  41. package/examples/oauth-example/src/App.test.tsx +12 -0
  42. package/examples/oauth-example/src/App.tsx +16 -0
  43. package/examples/oauth-example/src/auth/AuthContext.ts +8 -0
  44. package/examples/oauth-example/src/auth/AuthProvider.tsx +44 -0
  45. package/examples/oauth-example/src/auth/RequireAuth.tsx +19 -0
  46. package/examples/oauth-example/src/auth/oauthProvider.ts +35 -0
  47. package/examples/oauth-example/src/components/Button.tsx +39 -0
  48. package/examples/oauth-example/src/components/CurrencyAmount.tsx +117 -0
  49. package/examples/oauth-example/src/components/Dashboard.tsx +158 -0
  50. package/examples/oauth-example/src/components/Table.tsx +22 -0
  51. package/examples/oauth-example/src/hooks/useAccountInfo.tsx +31 -0
  52. package/examples/oauth-example/src/icons/BitcoinB.tsx +20 -0
  53. package/examples/oauth-example/src/icons/Icon.tsx +121 -0
  54. package/examples/oauth-example/src/icons/Satoshi.tsx +28 -0
  55. package/examples/oauth-example/src/index.css +13 -0
  56. package/examples/oauth-example/src/index.tsx +23 -0
  57. package/examples/oauth-example/src/lightsparkclient/LightsparkClientContext.ts +10 -0
  58. package/examples/oauth-example/src/lightsparkclient/LightsparkClientProvider.tsx +53 -0
  59. package/examples/oauth-example/src/logo.svg +1 -0
  60. package/examples/oauth-example/src/pages/DashboardPage.tsx +71 -0
  61. package/examples/oauth-example/src/pages/LoginPage.tsx +63 -0
  62. package/examples/oauth-example/src/react-app-env.d.ts +1 -0
  63. package/examples/oauth-example/src/reportWebVitals.ts +15 -0
  64. package/examples/oauth-example/src/routes/index.tsx +15 -0
  65. package/examples/oauth-example/src/setupTests.ts +5 -0
  66. package/examples/oauth-example/src/utils/currency.ts +483 -0
  67. package/examples/oauth-example/tsconfig.json +20 -0
  68. package/examples/streaming-wallet-extension/.fossa.yml +6 -0
  69. package/examples/streaming-wallet-extension/README.md +17 -0
  70. package/examples/streaming-wallet-extension/craco.config.js +58 -0
  71. package/examples/streaming-wallet-extension/package-lock.json +18260 -0
  72. package/examples/streaming-wallet-extension/package.json +77 -0
  73. package/examples/streaming-wallet-extension/public/index.html +24 -0
  74. package/examples/streaming-wallet-extension/public/lightspark_full.png +0 -0
  75. package/examples/streaming-wallet-extension/public/lightspark_icon_circle.png +0 -0
  76. package/examples/streaming-wallet-extension/public/manifest.json +43 -0
  77. package/examples/streaming-wallet-extension/public/robots.txt +3 -0
  78. package/examples/streaming-wallet-extension/src/App.css +53 -0
  79. package/examples/streaming-wallet-extension/src/App.tsx +425 -0
  80. package/examples/streaming-wallet-extension/src/auth/AccountStorage.ts +28 -0
  81. package/examples/streaming-wallet-extension/src/auth/DemoAccountProvider.ts +99 -0
  82. package/examples/streaming-wallet-extension/src/auth/StreamingDemoCredentials.ts +10 -0
  83. package/examples/streaming-wallet-extension/src/background/PaymentStrategy.ts +36 -0
  84. package/examples/streaming-wallet-extension/src/background/PlaybackRange.ts +31 -0
  85. package/examples/streaming-wallet-extension/src/background/StreamingInvoiceHolder.ts +33 -0
  86. package/examples/streaming-wallet-extension/src/background/TransactionObserver.ts +66 -0
  87. package/examples/streaming-wallet-extension/src/background/VideoPlaybackRanges.ts +38 -0
  88. package/examples/streaming-wallet-extension/src/background/VideoProgressCache.ts +87 -0
  89. package/examples/streaming-wallet-extension/src/background/background.ts +145 -0
  90. package/examples/streaming-wallet-extension/src/background/messageHandling.ts +185 -0
  91. package/examples/streaming-wallet-extension/src/common/datetimes.ts +28 -0
  92. package/examples/streaming-wallet-extension/src/common/settings.ts +12 -0
  93. package/examples/streaming-wallet-extension/src/common/storage.ts +8 -0
  94. package/examples/streaming-wallet-extension/src/common/streamingTabs.ts +27 -0
  95. package/examples/streaming-wallet-extension/src/common/types.tsx +23 -0
  96. package/examples/streaming-wallet-extension/src/components/CirclePlusIcon.tsx +19 -0
  97. package/examples/streaming-wallet-extension/src/components/CurrencyAmount.tsx +110 -0
  98. package/examples/streaming-wallet-extension/src/components/CurrencyAmountRaw.tsx +195 -0
  99. package/examples/streaming-wallet-extension/src/components/LeftArrow.tsx +21 -0
  100. package/examples/streaming-wallet-extension/src/components/Loading.tsx +151 -0
  101. package/examples/streaming-wallet-extension/src/components/StreamingTransactionChip.tsx +95 -0
  102. package/examples/streaming-wallet-extension/src/components/TransactionRow.tsx +93 -0
  103. package/examples/streaming-wallet-extension/src/contentscript/content.ts +123 -0
  104. package/examples/streaming-wallet-extension/src/contentscript/lightsparkDemoDom.tsx +113 -0
  105. package/examples/streaming-wallet-extension/src/contentscript/videoElementParsers.ts +92 -0
  106. package/examples/streaming-wallet-extension/src/index.css +16 -0
  107. package/examples/streaming-wallet-extension/src/index.tsx +11 -0
  108. package/examples/streaming-wallet-extension/src/lightsparkClientProvider.tsx +26 -0
  109. package/examples/streaming-wallet-extension/src/react-app-env.d.ts +1 -0
  110. package/examples/streaming-wallet-extension/src/types/Messages.ts +17 -0
  111. package/examples/streaming-wallet-extension/tsconfig.json +20 -0
  112. package/package.json +87 -0
  113. package/src/auth/AccountTokenAuthProvider.ts +37 -0
  114. package/src/auth/index.ts +3 -0
  115. package/src/client.ts +759 -0
  116. package/src/graphql/BitcoinFeeEstimate.ts +13 -0
  117. package/src/graphql/CreateApiToken.ts +22 -0
  118. package/src/graphql/CreateInvoice.ts +18 -0
  119. package/src/graphql/CreateNodeWalletAddress.ts +13 -0
  120. package/src/graphql/CurrentAccount.ts +13 -0
  121. package/src/graphql/DecodeInvoice.ts +16 -0
  122. package/src/graphql/DeleteApiToken.ts +13 -0
  123. package/src/graphql/FundNode.ts +18 -0
  124. package/src/graphql/LightningFeeEstimateForInvoice.ts +21 -0
  125. package/src/graphql/LightningFeeEstimateForNode.ts +21 -0
  126. package/src/graphql/MultiNodeDashboard.ts +118 -0
  127. package/src/graphql/PayInvoice.ts +29 -0
  128. package/src/graphql/RecoverNodeSigningKey.ts +15 -0
  129. package/src/graphql/RequestWithdrawal.ts +25 -0
  130. package/src/graphql/SendPayment.ts +29 -0
  131. package/src/graphql/SingleNodeDashboard.ts +116 -0
  132. package/src/graphql/TransactionSubscription.ts +16 -0
  133. package/src/graphql/TransactionsForNode.ts +42 -0
  134. package/src/index.ts +5 -0
  135. package/src/objects/Account.ts +1222 -0
  136. package/src/objects/AccountToApiTokensConnection.ts +50 -0
  137. package/src/objects/AccountToChannelsConnection.ts +35 -0
  138. package/src/objects/AccountToNodesConnection.ts +62 -0
  139. package/src/objects/AccountToPaymentRequestsConnection.ts +50 -0
  140. package/src/objects/AccountToTransactionsConnection.ts +112 -0
  141. package/src/objects/ApiToken.ts +80 -0
  142. package/src/objects/BitcoinNetwork.ts +19 -0
  143. package/src/objects/BlockchainBalance.ts +102 -0
  144. package/src/objects/Channel.ts +283 -0
  145. package/src/objects/ChannelClosingTransaction.ts +150 -0
  146. package/src/objects/ChannelFees.ts +34 -0
  147. package/src/objects/ChannelOpeningTransaction.ts +150 -0
  148. package/src/objects/ChannelStatus.ts +25 -0
  149. package/src/objects/ChannelToTransactionsConnection.ts +86 -0
  150. package/src/objects/CreateApiTokenInput.ts +22 -0
  151. package/src/objects/CreateApiTokenOutput.ts +41 -0
  152. package/src/objects/CreateInvoiceInput.ts +27 -0
  153. package/src/objects/CreateInvoiceOutput.ts +21 -0
  154. package/src/objects/CreateNodeWalletAddressInput.ts +15 -0
  155. package/src/objects/CreateNodeWalletAddressOutput.ts +27 -0
  156. package/src/objects/CurrencyAmount.ts +55 -0
  157. package/src/objects/CurrencyUnit.ts +25 -0
  158. package/src/objects/DeleteApiTokenInput.ts +13 -0
  159. package/src/objects/DeleteApiTokenOutput.ts +23 -0
  160. package/src/objects/Deposit.ts +144 -0
  161. package/src/objects/Entity.ts +868 -0
  162. package/src/objects/FeeEstimate.ts +39 -0
  163. package/src/objects/FundNodeInput.ts +16 -0
  164. package/src/objects/FundNodeOutput.ts +28 -0
  165. package/src/objects/GraphNode.ts +110 -0
  166. package/src/objects/Hop.ts +108 -0
  167. package/src/objects/HtlcAttemptFailureCode.ts +65 -0
  168. package/src/objects/IncomingPayment.ts +141 -0
  169. package/src/objects/IncomingPaymentAttempt.ts +96 -0
  170. package/src/objects/IncomingPaymentAttemptStatus.ts +20 -0
  171. package/src/objects/IncomingPaymentToAttemptsConnection.ts +39 -0
  172. package/src/objects/Invoice.ts +226 -0
  173. package/src/objects/InvoiceData.ts +185 -0
  174. package/src/objects/InvoiceType.ts +15 -0
  175. package/src/objects/LightningFeeEstimateForInvoiceInput.ts +28 -0
  176. package/src/objects/LightningFeeEstimateForNodeInput.ts +25 -0
  177. package/src/objects/LightningFeeEstimateOutput.ts +33 -0
  178. package/src/objects/LightningTransaction.ts +393 -0
  179. package/src/objects/LightsparkNode.ts +377 -0
  180. package/src/objects/LightsparkNodePurpose.ts +17 -0
  181. package/src/objects/LightsparkNodeStatus.ts +29 -0
  182. package/src/objects/LightsparkNodeToChannelsConnection.ts +50 -0
  183. package/src/objects/Node.ts +273 -0
  184. package/src/objects/NodeAddress.ts +29 -0
  185. package/src/objects/NodeAddressType.ts +18 -0
  186. package/src/objects/NodeToAddressesConnection.ts +39 -0
  187. package/src/objects/OnChainTransaction.ts +318 -0
  188. package/src/objects/OutgoingPayment.ts +319 -0
  189. package/src/objects/OutgoingPaymentAttempt.ts +164 -0
  190. package/src/objects/OutgoingPaymentAttemptStatus.ts +18 -0
  191. package/src/objects/OutgoingPaymentAttemptToHopsConnection.ts +37 -0
  192. package/src/objects/OutgoingPaymentToAttemptsConnection.ts +39 -0
  193. package/src/objects/PageInfo.ts +31 -0
  194. package/src/objects/PayInvoiceInput.ts +33 -0
  195. package/src/objects/PayInvoiceOutput.ts +22 -0
  196. package/src/objects/PaymentFailureReason.ts +29 -0
  197. package/src/objects/PaymentRequest.ts +231 -0
  198. package/src/objects/PaymentRequestData.ts +183 -0
  199. package/src/objects/PaymentRequestStatus.ts +15 -0
  200. package/src/objects/Permission.ts +39 -0
  201. package/src/objects/RequestWithdrawalInput.ts +35 -0
  202. package/src/objects/RequestWithdrawalOutput.ts +24 -0
  203. package/src/objects/RichText.ts +19 -0
  204. package/src/objects/RoutingTransaction.ts +150 -0
  205. package/src/objects/RoutingTransactionFailureReason.ts +17 -0
  206. package/src/objects/Secret.ts +23 -0
  207. package/src/objects/SendPaymentInput.ts +30 -0
  208. package/src/objects/SendPaymentOutput.ts +22 -0
  209. package/src/objects/Transaction.ts +609 -0
  210. package/src/objects/TransactionFailures.ts +23 -0
  211. package/src/objects/TransactionStatus.ts +23 -0
  212. package/src/objects/TransactionType.ts +31 -0
  213. package/src/objects/TransactionUpdate.ts +67 -0
  214. package/src/objects/WalletDashboard.ts +32 -0
  215. package/src/objects/WebhookEventType.ts +15 -0
  216. package/src/objects/Withdrawal.ts +144 -0
  217. package/src/objects/WithdrawalMode.ts +15 -0
  218. package/src/objects/WithdrawalRequest.ts +224 -0
  219. package/src/objects/WithdrawalRequestStatus.ts +17 -0
  220. package/src/objects/WithdrawalRequestToChannelClosingTransactionsConnection.ts +57 -0
  221. package/src/objects/WithdrawalRequestToChannelOpeningTransactionsConnection.ts +57 -0
  222. package/src/objects/index.ts +108 -0
  223. package/tsconfig.json +5 -0
@@ -0,0 +1,868 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+
3
+ /** This interface is used by all the entities in the Lightspark systems. It defines a few core fields that are available everywhere. Any object that implements this interface can be queried using the `entity` query and its ID. **/
4
+ type Entity = {
5
+ /**
6
+ * The unique identifier of this entity across all Lightspark systems. Should be treated as an opaque
7
+ * string.
8
+ **/
9
+ id: string;
10
+
11
+ /** The date and time when the entity was first created. **/
12
+ createdAt: string;
13
+
14
+ /** The date and time when the entity was last updated. **/
15
+ updatedAt: string;
16
+
17
+ /** The typename of the object **/
18
+ typename: string;
19
+ };
20
+
21
+ export const FRAGMENT = `
22
+ fragment EntityFragment on Entity {
23
+ __typename
24
+ ... on Account {
25
+ __typename
26
+ account_id: id
27
+ account_created_at: created_at
28
+ account_updated_at: updated_at
29
+ account_name: name
30
+ }
31
+ ... on ApiToken {
32
+ __typename
33
+ api_token_id: id
34
+ api_token_created_at: created_at
35
+ api_token_updated_at: updated_at
36
+ api_token_client_id: client_id
37
+ api_token_name: name
38
+ api_token_permissions: permissions
39
+ }
40
+ ... on Channel {
41
+ __typename
42
+ channel_id: id
43
+ channel_created_at: created_at
44
+ channel_updated_at: updated_at
45
+ channel_funding_transaction: funding_transaction {
46
+ id
47
+ }
48
+ channel_capacity: capacity {
49
+ __typename
50
+ currency_amount_original_value: original_value
51
+ currency_amount_original_unit: original_unit
52
+ currency_amount_preferred_currency_unit: preferred_currency_unit
53
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
54
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
55
+ }
56
+ channel_local_balance: local_balance {
57
+ __typename
58
+ currency_amount_original_value: original_value
59
+ currency_amount_original_unit: original_unit
60
+ currency_amount_preferred_currency_unit: preferred_currency_unit
61
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
62
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
63
+ }
64
+ channel_local_unsettled_balance: local_unsettled_balance {
65
+ __typename
66
+ currency_amount_original_value: original_value
67
+ currency_amount_original_unit: original_unit
68
+ currency_amount_preferred_currency_unit: preferred_currency_unit
69
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
70
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
71
+ }
72
+ channel_remote_balance: remote_balance {
73
+ __typename
74
+ currency_amount_original_value: original_value
75
+ currency_amount_original_unit: original_unit
76
+ currency_amount_preferred_currency_unit: preferred_currency_unit
77
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
78
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
79
+ }
80
+ channel_remote_unsettled_balance: remote_unsettled_balance {
81
+ __typename
82
+ currency_amount_original_value: original_value
83
+ currency_amount_original_unit: original_unit
84
+ currency_amount_preferred_currency_unit: preferred_currency_unit
85
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
86
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
87
+ }
88
+ channel_unsettled_balance: unsettled_balance {
89
+ __typename
90
+ currency_amount_original_value: original_value
91
+ currency_amount_original_unit: original_unit
92
+ currency_amount_preferred_currency_unit: preferred_currency_unit
93
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
94
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
95
+ }
96
+ channel_total_balance: total_balance {
97
+ __typename
98
+ currency_amount_original_value: original_value
99
+ currency_amount_original_unit: original_unit
100
+ currency_amount_preferred_currency_unit: preferred_currency_unit
101
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
102
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
103
+ }
104
+ channel_status: status
105
+ channel_estimated_force_closure_wait_minutes: estimated_force_closure_wait_minutes
106
+ channel_commit_fee: commit_fee {
107
+ __typename
108
+ currency_amount_original_value: original_value
109
+ currency_amount_original_unit: original_unit
110
+ currency_amount_preferred_currency_unit: preferred_currency_unit
111
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
112
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
113
+ }
114
+ channel_fees: fees {
115
+ __typename
116
+ channel_fees_base_fee: base_fee {
117
+ __typename
118
+ currency_amount_original_value: original_value
119
+ currency_amount_original_unit: original_unit
120
+ currency_amount_preferred_currency_unit: preferred_currency_unit
121
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
122
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
123
+ }
124
+ channel_fees_fee_rate_per_mil: fee_rate_per_mil
125
+ }
126
+ channel_remote_node: remote_node {
127
+ id
128
+ }
129
+ channel_local_node: local_node {
130
+ id
131
+ }
132
+ channel_short_channel_id: short_channel_id
133
+ }
134
+ ... on ChannelClosingTransaction {
135
+ __typename
136
+ channel_closing_transaction_id: id
137
+ channel_closing_transaction_created_at: created_at
138
+ channel_closing_transaction_updated_at: updated_at
139
+ channel_closing_transaction_status: status
140
+ channel_closing_transaction_resolved_at: resolved_at
141
+ channel_closing_transaction_amount: amount {
142
+ __typename
143
+ currency_amount_original_value: original_value
144
+ currency_amount_original_unit: original_unit
145
+ currency_amount_preferred_currency_unit: preferred_currency_unit
146
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
147
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
148
+ }
149
+ channel_closing_transaction_transaction_hash: transaction_hash
150
+ channel_closing_transaction_fees: fees {
151
+ __typename
152
+ currency_amount_original_value: original_value
153
+ currency_amount_original_unit: original_unit
154
+ currency_amount_preferred_currency_unit: preferred_currency_unit
155
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
156
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
157
+ }
158
+ channel_closing_transaction_block_hash: block_hash
159
+ channel_closing_transaction_block_height: block_height
160
+ channel_closing_transaction_destination_addresses: destination_addresses
161
+ channel_closing_transaction_num_confirmations: num_confirmations
162
+ channel_closing_transaction_channel: channel {
163
+ id
164
+ }
165
+ }
166
+ ... on ChannelOpeningTransaction {
167
+ __typename
168
+ channel_opening_transaction_id: id
169
+ channel_opening_transaction_created_at: created_at
170
+ channel_opening_transaction_updated_at: updated_at
171
+ channel_opening_transaction_status: status
172
+ channel_opening_transaction_resolved_at: resolved_at
173
+ channel_opening_transaction_amount: amount {
174
+ __typename
175
+ currency_amount_original_value: original_value
176
+ currency_amount_original_unit: original_unit
177
+ currency_amount_preferred_currency_unit: preferred_currency_unit
178
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
179
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
180
+ }
181
+ channel_opening_transaction_transaction_hash: transaction_hash
182
+ channel_opening_transaction_fees: fees {
183
+ __typename
184
+ currency_amount_original_value: original_value
185
+ currency_amount_original_unit: original_unit
186
+ currency_amount_preferred_currency_unit: preferred_currency_unit
187
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
188
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
189
+ }
190
+ channel_opening_transaction_block_hash: block_hash
191
+ channel_opening_transaction_block_height: block_height
192
+ channel_opening_transaction_destination_addresses: destination_addresses
193
+ channel_opening_transaction_num_confirmations: num_confirmations
194
+ channel_opening_transaction_channel: channel {
195
+ id
196
+ }
197
+ }
198
+ ... on Deposit {
199
+ __typename
200
+ deposit_id: id
201
+ deposit_created_at: created_at
202
+ deposit_updated_at: updated_at
203
+ deposit_status: status
204
+ deposit_resolved_at: resolved_at
205
+ deposit_amount: amount {
206
+ __typename
207
+ currency_amount_original_value: original_value
208
+ currency_amount_original_unit: original_unit
209
+ currency_amount_preferred_currency_unit: preferred_currency_unit
210
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
211
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
212
+ }
213
+ deposit_transaction_hash: transaction_hash
214
+ deposit_fees: fees {
215
+ __typename
216
+ currency_amount_original_value: original_value
217
+ currency_amount_original_unit: original_unit
218
+ currency_amount_preferred_currency_unit: preferred_currency_unit
219
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
220
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
221
+ }
222
+ deposit_block_hash: block_hash
223
+ deposit_block_height: block_height
224
+ deposit_destination_addresses: destination_addresses
225
+ deposit_num_confirmations: num_confirmations
226
+ deposit_destination: destination {
227
+ id
228
+ }
229
+ }
230
+ ... on GraphNode {
231
+ __typename
232
+ graph_node_id: id
233
+ graph_node_created_at: created_at
234
+ graph_node_updated_at: updated_at
235
+ graph_node_alias: alias
236
+ graph_node_bitcoin_network: bitcoin_network
237
+ graph_node_color: color
238
+ graph_node_conductivity: conductivity
239
+ graph_node_display_name: display_name
240
+ graph_node_public_key: public_key
241
+ }
242
+ ... on Hop {
243
+ __typename
244
+ hop_id: id
245
+ hop_created_at: created_at
246
+ hop_updated_at: updated_at
247
+ hop_destination: destination {
248
+ id
249
+ }
250
+ hop_index: index
251
+ hop_public_key: public_key
252
+ hop_amount_to_forward: amount_to_forward {
253
+ __typename
254
+ currency_amount_original_value: original_value
255
+ currency_amount_original_unit: original_unit
256
+ currency_amount_preferred_currency_unit: preferred_currency_unit
257
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
258
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
259
+ }
260
+ hop_fee: fee {
261
+ __typename
262
+ currency_amount_original_value: original_value
263
+ currency_amount_original_unit: original_unit
264
+ currency_amount_preferred_currency_unit: preferred_currency_unit
265
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
266
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
267
+ }
268
+ hop_expiry_block_height: expiry_block_height
269
+ }
270
+ ... on IncomingPayment {
271
+ __typename
272
+ incoming_payment_id: id
273
+ incoming_payment_created_at: created_at
274
+ incoming_payment_updated_at: updated_at
275
+ incoming_payment_status: status
276
+ incoming_payment_resolved_at: resolved_at
277
+ incoming_payment_amount: amount {
278
+ __typename
279
+ currency_amount_original_value: original_value
280
+ currency_amount_original_unit: original_unit
281
+ currency_amount_preferred_currency_unit: preferred_currency_unit
282
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
283
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
284
+ }
285
+ incoming_payment_transaction_hash: transaction_hash
286
+ incoming_payment_origin: origin {
287
+ id
288
+ }
289
+ incoming_payment_destination: destination {
290
+ id
291
+ }
292
+ incoming_payment_payment_request: payment_request {
293
+ id
294
+ }
295
+ }
296
+ ... on IncomingPaymentAttempt {
297
+ __typename
298
+ incoming_payment_attempt_id: id
299
+ incoming_payment_attempt_created_at: created_at
300
+ incoming_payment_attempt_updated_at: updated_at
301
+ incoming_payment_attempt_status: status
302
+ incoming_payment_attempt_resolved_at: resolved_at
303
+ incoming_payment_attempt_amount: amount {
304
+ __typename
305
+ currency_amount_original_value: original_value
306
+ currency_amount_original_unit: original_unit
307
+ currency_amount_preferred_currency_unit: preferred_currency_unit
308
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
309
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
310
+ }
311
+ incoming_payment_attempt_channel: channel {
312
+ id
313
+ }
314
+ }
315
+ ... on Invoice {
316
+ __typename
317
+ invoice_id: id
318
+ invoice_created_at: created_at
319
+ invoice_updated_at: updated_at
320
+ invoice_data: data {
321
+ __typename
322
+ invoice_data_encoded_payment_request: encoded_payment_request
323
+ invoice_data_bitcoin_network: bitcoin_network
324
+ invoice_data_payment_hash: payment_hash
325
+ invoice_data_amount: amount {
326
+ __typename
327
+ currency_amount_original_value: original_value
328
+ currency_amount_original_unit: original_unit
329
+ currency_amount_preferred_currency_unit: preferred_currency_unit
330
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
331
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
332
+ }
333
+ invoice_data_created_at: created_at
334
+ invoice_data_expires_at: expires_at
335
+ invoice_data_destination: destination {
336
+ __typename
337
+ ... on GraphNode {
338
+ __typename
339
+ graph_node_id: id
340
+ graph_node_created_at: created_at
341
+ graph_node_updated_at: updated_at
342
+ graph_node_alias: alias
343
+ graph_node_bitcoin_network: bitcoin_network
344
+ graph_node_color: color
345
+ graph_node_conductivity: conductivity
346
+ graph_node_display_name: display_name
347
+ graph_node_public_key: public_key
348
+ }
349
+ ... on LightsparkNode {
350
+ __typename
351
+ lightspark_node_id: id
352
+ lightspark_node_created_at: created_at
353
+ lightspark_node_updated_at: updated_at
354
+ lightspark_node_alias: alias
355
+ lightspark_node_bitcoin_network: bitcoin_network
356
+ lightspark_node_color: color
357
+ lightspark_node_conductivity: conductivity
358
+ lightspark_node_display_name: display_name
359
+ lightspark_node_public_key: public_key
360
+ lightspark_node_account: account {
361
+ id
362
+ }
363
+ lightspark_node_blockchain_balance: blockchain_balance {
364
+ __typename
365
+ blockchain_balance_total_balance: total_balance {
366
+ __typename
367
+ currency_amount_original_value: original_value
368
+ currency_amount_original_unit: original_unit
369
+ currency_amount_preferred_currency_unit: preferred_currency_unit
370
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
371
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
372
+ }
373
+ blockchain_balance_confirmed_balance: confirmed_balance {
374
+ __typename
375
+ currency_amount_original_value: original_value
376
+ currency_amount_original_unit: original_unit
377
+ currency_amount_preferred_currency_unit: preferred_currency_unit
378
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
379
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
380
+ }
381
+ blockchain_balance_unconfirmed_balance: unconfirmed_balance {
382
+ __typename
383
+ currency_amount_original_value: original_value
384
+ currency_amount_original_unit: original_unit
385
+ currency_amount_preferred_currency_unit: preferred_currency_unit
386
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
387
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
388
+ }
389
+ blockchain_balance_locked_balance: locked_balance {
390
+ __typename
391
+ currency_amount_original_value: original_value
392
+ currency_amount_original_unit: original_unit
393
+ currency_amount_preferred_currency_unit: preferred_currency_unit
394
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
395
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
396
+ }
397
+ blockchain_balance_required_reserve: required_reserve {
398
+ __typename
399
+ currency_amount_original_value: original_value
400
+ currency_amount_original_unit: original_unit
401
+ currency_amount_preferred_currency_unit: preferred_currency_unit
402
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
403
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
404
+ }
405
+ blockchain_balance_available_balance: available_balance {
406
+ __typename
407
+ currency_amount_original_value: original_value
408
+ currency_amount_original_unit: original_unit
409
+ currency_amount_preferred_currency_unit: preferred_currency_unit
410
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
411
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
412
+ }
413
+ }
414
+ lightspark_node_encrypted_signing_private_key: encrypted_signing_private_key {
415
+ __typename
416
+ secret_encrypted_value: encrypted_value
417
+ secret_cipher: cipher
418
+ }
419
+ lightspark_node_total_balance: total_balance {
420
+ __typename
421
+ currency_amount_original_value: original_value
422
+ currency_amount_original_unit: original_unit
423
+ currency_amount_preferred_currency_unit: preferred_currency_unit
424
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
425
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
426
+ }
427
+ lightspark_node_total_local_balance: total_local_balance {
428
+ __typename
429
+ currency_amount_original_value: original_value
430
+ currency_amount_original_unit: original_unit
431
+ currency_amount_preferred_currency_unit: preferred_currency_unit
432
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
433
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
434
+ }
435
+ lightspark_node_local_balance: local_balance {
436
+ __typename
437
+ currency_amount_original_value: original_value
438
+ currency_amount_original_unit: original_unit
439
+ currency_amount_preferred_currency_unit: preferred_currency_unit
440
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
441
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
442
+ }
443
+ lightspark_node_purpose: purpose
444
+ lightspark_node_remote_balance: remote_balance {
445
+ __typename
446
+ currency_amount_original_value: original_value
447
+ currency_amount_original_unit: original_unit
448
+ currency_amount_preferred_currency_unit: preferred_currency_unit
449
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
450
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
451
+ }
452
+ lightspark_node_status: status
453
+ }
454
+ }
455
+ invoice_data_memo: memo
456
+ }
457
+ invoice_status: status
458
+ invoice_amount_paid: amount_paid {
459
+ __typename
460
+ currency_amount_original_value: original_value
461
+ currency_amount_original_unit: original_unit
462
+ currency_amount_preferred_currency_unit: preferred_currency_unit
463
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
464
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
465
+ }
466
+ }
467
+ ... on LightsparkNode {
468
+ __typename
469
+ lightspark_node_id: id
470
+ lightspark_node_created_at: created_at
471
+ lightspark_node_updated_at: updated_at
472
+ lightspark_node_alias: alias
473
+ lightspark_node_bitcoin_network: bitcoin_network
474
+ lightspark_node_color: color
475
+ lightspark_node_conductivity: conductivity
476
+ lightspark_node_display_name: display_name
477
+ lightspark_node_public_key: public_key
478
+ lightspark_node_account: account {
479
+ id
480
+ }
481
+ lightspark_node_blockchain_balance: blockchain_balance {
482
+ __typename
483
+ blockchain_balance_total_balance: total_balance {
484
+ __typename
485
+ currency_amount_original_value: original_value
486
+ currency_amount_original_unit: original_unit
487
+ currency_amount_preferred_currency_unit: preferred_currency_unit
488
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
489
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
490
+ }
491
+ blockchain_balance_confirmed_balance: confirmed_balance {
492
+ __typename
493
+ currency_amount_original_value: original_value
494
+ currency_amount_original_unit: original_unit
495
+ currency_amount_preferred_currency_unit: preferred_currency_unit
496
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
497
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
498
+ }
499
+ blockchain_balance_unconfirmed_balance: unconfirmed_balance {
500
+ __typename
501
+ currency_amount_original_value: original_value
502
+ currency_amount_original_unit: original_unit
503
+ currency_amount_preferred_currency_unit: preferred_currency_unit
504
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
505
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
506
+ }
507
+ blockchain_balance_locked_balance: locked_balance {
508
+ __typename
509
+ currency_amount_original_value: original_value
510
+ currency_amount_original_unit: original_unit
511
+ currency_amount_preferred_currency_unit: preferred_currency_unit
512
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
513
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
514
+ }
515
+ blockchain_balance_required_reserve: required_reserve {
516
+ __typename
517
+ currency_amount_original_value: original_value
518
+ currency_amount_original_unit: original_unit
519
+ currency_amount_preferred_currency_unit: preferred_currency_unit
520
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
521
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
522
+ }
523
+ blockchain_balance_available_balance: available_balance {
524
+ __typename
525
+ currency_amount_original_value: original_value
526
+ currency_amount_original_unit: original_unit
527
+ currency_amount_preferred_currency_unit: preferred_currency_unit
528
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
529
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
530
+ }
531
+ }
532
+ lightspark_node_encrypted_signing_private_key: encrypted_signing_private_key {
533
+ __typename
534
+ secret_encrypted_value: encrypted_value
535
+ secret_cipher: cipher
536
+ }
537
+ lightspark_node_total_balance: total_balance {
538
+ __typename
539
+ currency_amount_original_value: original_value
540
+ currency_amount_original_unit: original_unit
541
+ currency_amount_preferred_currency_unit: preferred_currency_unit
542
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
543
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
544
+ }
545
+ lightspark_node_total_local_balance: total_local_balance {
546
+ __typename
547
+ currency_amount_original_value: original_value
548
+ currency_amount_original_unit: original_unit
549
+ currency_amount_preferred_currency_unit: preferred_currency_unit
550
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
551
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
552
+ }
553
+ lightspark_node_local_balance: local_balance {
554
+ __typename
555
+ currency_amount_original_value: original_value
556
+ currency_amount_original_unit: original_unit
557
+ currency_amount_preferred_currency_unit: preferred_currency_unit
558
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
559
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
560
+ }
561
+ lightspark_node_purpose: purpose
562
+ lightspark_node_remote_balance: remote_balance {
563
+ __typename
564
+ currency_amount_original_value: original_value
565
+ currency_amount_original_unit: original_unit
566
+ currency_amount_preferred_currency_unit: preferred_currency_unit
567
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
568
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
569
+ }
570
+ lightspark_node_status: status
571
+ }
572
+ ... on OutgoingPayment {
573
+ __typename
574
+ outgoing_payment_id: id
575
+ outgoing_payment_created_at: created_at
576
+ outgoing_payment_updated_at: updated_at
577
+ outgoing_payment_status: status
578
+ outgoing_payment_resolved_at: resolved_at
579
+ outgoing_payment_amount: amount {
580
+ __typename
581
+ currency_amount_original_value: original_value
582
+ currency_amount_original_unit: original_unit
583
+ currency_amount_preferred_currency_unit: preferred_currency_unit
584
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
585
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
586
+ }
587
+ outgoing_payment_transaction_hash: transaction_hash
588
+ outgoing_payment_origin: origin {
589
+ id
590
+ }
591
+ outgoing_payment_destination: destination {
592
+ id
593
+ }
594
+ outgoing_payment_fees: fees {
595
+ __typename
596
+ currency_amount_original_value: original_value
597
+ currency_amount_original_unit: original_unit
598
+ currency_amount_preferred_currency_unit: preferred_currency_unit
599
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
600
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
601
+ }
602
+ outgoing_payment_payment_request_data: payment_request_data {
603
+ __typename
604
+ ... on InvoiceData {
605
+ __typename
606
+ invoice_data_encoded_payment_request: encoded_payment_request
607
+ invoice_data_bitcoin_network: bitcoin_network
608
+ invoice_data_payment_hash: payment_hash
609
+ invoice_data_amount: amount {
610
+ __typename
611
+ currency_amount_original_value: original_value
612
+ currency_amount_original_unit: original_unit
613
+ currency_amount_preferred_currency_unit: preferred_currency_unit
614
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
615
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
616
+ }
617
+ invoice_data_created_at: created_at
618
+ invoice_data_expires_at: expires_at
619
+ invoice_data_destination: destination {
620
+ __typename
621
+ ... on GraphNode {
622
+ __typename
623
+ graph_node_id: id
624
+ graph_node_created_at: created_at
625
+ graph_node_updated_at: updated_at
626
+ graph_node_alias: alias
627
+ graph_node_bitcoin_network: bitcoin_network
628
+ graph_node_color: color
629
+ graph_node_conductivity: conductivity
630
+ graph_node_display_name: display_name
631
+ graph_node_public_key: public_key
632
+ }
633
+ ... on LightsparkNode {
634
+ __typename
635
+ lightspark_node_id: id
636
+ lightspark_node_created_at: created_at
637
+ lightspark_node_updated_at: updated_at
638
+ lightspark_node_alias: alias
639
+ lightspark_node_bitcoin_network: bitcoin_network
640
+ lightspark_node_color: color
641
+ lightspark_node_conductivity: conductivity
642
+ lightspark_node_display_name: display_name
643
+ lightspark_node_public_key: public_key
644
+ lightspark_node_account: account {
645
+ id
646
+ }
647
+ lightspark_node_blockchain_balance: blockchain_balance {
648
+ __typename
649
+ blockchain_balance_total_balance: total_balance {
650
+ __typename
651
+ currency_amount_original_value: original_value
652
+ currency_amount_original_unit: original_unit
653
+ currency_amount_preferred_currency_unit: preferred_currency_unit
654
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
655
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
656
+ }
657
+ blockchain_balance_confirmed_balance: confirmed_balance {
658
+ __typename
659
+ currency_amount_original_value: original_value
660
+ currency_amount_original_unit: original_unit
661
+ currency_amount_preferred_currency_unit: preferred_currency_unit
662
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
663
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
664
+ }
665
+ blockchain_balance_unconfirmed_balance: unconfirmed_balance {
666
+ __typename
667
+ currency_amount_original_value: original_value
668
+ currency_amount_original_unit: original_unit
669
+ currency_amount_preferred_currency_unit: preferred_currency_unit
670
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
671
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
672
+ }
673
+ blockchain_balance_locked_balance: locked_balance {
674
+ __typename
675
+ currency_amount_original_value: original_value
676
+ currency_amount_original_unit: original_unit
677
+ currency_amount_preferred_currency_unit: preferred_currency_unit
678
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
679
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
680
+ }
681
+ blockchain_balance_required_reserve: required_reserve {
682
+ __typename
683
+ currency_amount_original_value: original_value
684
+ currency_amount_original_unit: original_unit
685
+ currency_amount_preferred_currency_unit: preferred_currency_unit
686
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
687
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
688
+ }
689
+ blockchain_balance_available_balance: available_balance {
690
+ __typename
691
+ currency_amount_original_value: original_value
692
+ currency_amount_original_unit: original_unit
693
+ currency_amount_preferred_currency_unit: preferred_currency_unit
694
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
695
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
696
+ }
697
+ }
698
+ lightspark_node_encrypted_signing_private_key: encrypted_signing_private_key {
699
+ __typename
700
+ secret_encrypted_value: encrypted_value
701
+ secret_cipher: cipher
702
+ }
703
+ lightspark_node_total_balance: total_balance {
704
+ __typename
705
+ currency_amount_original_value: original_value
706
+ currency_amount_original_unit: original_unit
707
+ currency_amount_preferred_currency_unit: preferred_currency_unit
708
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
709
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
710
+ }
711
+ lightspark_node_total_local_balance: total_local_balance {
712
+ __typename
713
+ currency_amount_original_value: original_value
714
+ currency_amount_original_unit: original_unit
715
+ currency_amount_preferred_currency_unit: preferred_currency_unit
716
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
717
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
718
+ }
719
+ lightspark_node_local_balance: local_balance {
720
+ __typename
721
+ currency_amount_original_value: original_value
722
+ currency_amount_original_unit: original_unit
723
+ currency_amount_preferred_currency_unit: preferred_currency_unit
724
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
725
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
726
+ }
727
+ lightspark_node_purpose: purpose
728
+ lightspark_node_remote_balance: remote_balance {
729
+ __typename
730
+ currency_amount_original_value: original_value
731
+ currency_amount_original_unit: original_unit
732
+ currency_amount_preferred_currency_unit: preferred_currency_unit
733
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
734
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
735
+ }
736
+ lightspark_node_status: status
737
+ }
738
+ }
739
+ invoice_data_memo: memo
740
+ }
741
+ }
742
+ outgoing_payment_failure_reason: failure_reason
743
+ outgoing_payment_failure_message: failure_message {
744
+ __typename
745
+ rich_text_text: text
746
+ }
747
+ }
748
+ ... on OutgoingPaymentAttempt {
749
+ __typename
750
+ outgoing_payment_attempt_id: id
751
+ outgoing_payment_attempt_created_at: created_at
752
+ outgoing_payment_attempt_updated_at: updated_at
753
+ outgoing_payment_attempt_status: status
754
+ outgoing_payment_attempt_failure_code: failure_code
755
+ outgoing_payment_attempt_failure_source_index: failure_source_index
756
+ outgoing_payment_attempt_resolved_at: resolved_at
757
+ outgoing_payment_attempt_amount: amount {
758
+ __typename
759
+ currency_amount_original_value: original_value
760
+ currency_amount_original_unit: original_unit
761
+ currency_amount_preferred_currency_unit: preferred_currency_unit
762
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
763
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
764
+ }
765
+ outgoing_payment_attempt_fees: fees {
766
+ __typename
767
+ currency_amount_original_value: original_value
768
+ currency_amount_original_unit: original_unit
769
+ currency_amount_preferred_currency_unit: preferred_currency_unit
770
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
771
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
772
+ }
773
+ outgoing_payment_attempt_outgoing_payment: outgoing_payment {
774
+ id
775
+ }
776
+ }
777
+ ... on RoutingTransaction {
778
+ __typename
779
+ routing_transaction_id: id
780
+ routing_transaction_created_at: created_at
781
+ routing_transaction_updated_at: updated_at
782
+ routing_transaction_status: status
783
+ routing_transaction_resolved_at: resolved_at
784
+ routing_transaction_amount: amount {
785
+ __typename
786
+ currency_amount_original_value: original_value
787
+ currency_amount_original_unit: original_unit
788
+ currency_amount_preferred_currency_unit: preferred_currency_unit
789
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
790
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
791
+ }
792
+ routing_transaction_transaction_hash: transaction_hash
793
+ routing_transaction_incoming_channel: incoming_channel {
794
+ id
795
+ }
796
+ routing_transaction_outgoing_channel: outgoing_channel {
797
+ id
798
+ }
799
+ routing_transaction_fees: fees {
800
+ __typename
801
+ currency_amount_original_value: original_value
802
+ currency_amount_original_unit: original_unit
803
+ currency_amount_preferred_currency_unit: preferred_currency_unit
804
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
805
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
806
+ }
807
+ routing_transaction_failure_message: failure_message {
808
+ __typename
809
+ rich_text_text: text
810
+ }
811
+ routing_transaction_failure_reason: failure_reason
812
+ }
813
+ ... on Withdrawal {
814
+ __typename
815
+ withdrawal_id: id
816
+ withdrawal_created_at: created_at
817
+ withdrawal_updated_at: updated_at
818
+ withdrawal_status: status
819
+ withdrawal_resolved_at: resolved_at
820
+ withdrawal_amount: amount {
821
+ __typename
822
+ currency_amount_original_value: original_value
823
+ currency_amount_original_unit: original_unit
824
+ currency_amount_preferred_currency_unit: preferred_currency_unit
825
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
826
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
827
+ }
828
+ withdrawal_transaction_hash: transaction_hash
829
+ withdrawal_fees: fees {
830
+ __typename
831
+ currency_amount_original_value: original_value
832
+ currency_amount_original_unit: original_unit
833
+ currency_amount_preferred_currency_unit: preferred_currency_unit
834
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
835
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
836
+ }
837
+ withdrawal_block_hash: block_hash
838
+ withdrawal_block_height: block_height
839
+ withdrawal_destination_addresses: destination_addresses
840
+ withdrawal_num_confirmations: num_confirmations
841
+ withdrawal_origin: origin {
842
+ id
843
+ }
844
+ }
845
+ ... on WithdrawalRequest {
846
+ __typename
847
+ withdrawal_request_id: id
848
+ withdrawal_request_created_at: created_at
849
+ withdrawal_request_updated_at: updated_at
850
+ withdrawal_request_amount: amount {
851
+ __typename
852
+ currency_amount_original_value: original_value
853
+ currency_amount_original_unit: original_unit
854
+ currency_amount_preferred_currency_unit: preferred_currency_unit
855
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
856
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
857
+ }
858
+ withdrawal_request_bitcoin_address: bitcoin_address
859
+ withdrawal_request_withdrawal_mode: withdrawal_mode
860
+ withdrawal_request_status: status
861
+ withdrawal_request_completed_at: completed_at
862
+ withdrawal_request_withdrawal: withdrawal {
863
+ id
864
+ }
865
+ }
866
+ }`;
867
+
868
+ export default Entity;