• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lightningnetwork / lnd / 13408822928

19 Feb 2025 08:59AM UTC coverage: 41.123% (-17.7%) from 58.794%
13408822928

Pull #9521

github

web-flow
Merge d2f397b3c into 0e8786348
Pull Request #9521: unit: remove GOACC, use Go 1.20 native coverage functionality

92496 of 224923 relevant lines covered (41.12%)

18825.83 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lnrpc/walletrpc/walletkit_grpc.pb.go
1
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
2

3
package walletrpc
4

5
import (
6
        context "context"
7
        lnrpc "github.com/lightningnetwork/lnd/lnrpc"
8
        signrpc "github.com/lightningnetwork/lnd/lnrpc/signrpc"
9
        grpc "google.golang.org/grpc"
10
        codes "google.golang.org/grpc/codes"
11
        status "google.golang.org/grpc/status"
12
)
13

14
// This is a compile-time assertion to ensure that this generated file
15
// is compatible with the grpc package it is being compiled against.
16
// Requires gRPC-Go v1.32.0 or later.
17
const _ = grpc.SupportPackageIsVersion7
18

19
// WalletKitClient is the client API for WalletKit service.
20
//
21
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
22
type WalletKitClient interface {
23
        // ListUnspent returns a list of all utxos spendable by the wallet with a
24
        // number of confirmations between the specified minimum and maximum. By
25
        // default, all utxos are listed. To list only the unconfirmed utxos, set
26
        // the unconfirmed_only to true.
27
        ListUnspent(ctx context.Context, in *ListUnspentRequest, opts ...grpc.CallOption) (*ListUnspentResponse, error)
28
        // lncli: `wallet leaseoutput`
29
        // LeaseOutput locks an output to the given ID, preventing it from being
30
        // available for any future coin selection attempts. The absolute time of the
31
        // lock's expiration is returned. The expiration of the lock can be extended by
32
        // successive invocations of this RPC. Outputs can be unlocked before their
33
        // expiration through `ReleaseOutput`.
34
        LeaseOutput(ctx context.Context, in *LeaseOutputRequest, opts ...grpc.CallOption) (*LeaseOutputResponse, error)
35
        // lncli: `wallet releaseoutput`
36
        // ReleaseOutput unlocks an output, allowing it to be available for coin
37
        // selection if it remains unspent. The ID should match the one used to
38
        // originally lock the output.
39
        ReleaseOutput(ctx context.Context, in *ReleaseOutputRequest, opts ...grpc.CallOption) (*ReleaseOutputResponse, error)
40
        // lncli: `wallet listleases`
41
        // ListLeases lists all currently locked utxos.
42
        ListLeases(ctx context.Context, in *ListLeasesRequest, opts ...grpc.CallOption) (*ListLeasesResponse, error)
43
        // DeriveNextKey attempts to derive the *next* key within the key family
44
        // (account in BIP43) specified. This method should return the next external
45
        // child within this branch.
46
        DeriveNextKey(ctx context.Context, in *KeyReq, opts ...grpc.CallOption) (*signrpc.KeyDescriptor, error)
47
        // DeriveKey attempts to derive an arbitrary key specified by the passed
48
        // KeyLocator.
49
        DeriveKey(ctx context.Context, in *signrpc.KeyLocator, opts ...grpc.CallOption) (*signrpc.KeyDescriptor, error)
50
        // NextAddr returns the next unused address within the wallet.
51
        NextAddr(ctx context.Context, in *AddrRequest, opts ...grpc.CallOption) (*AddrResponse, error)
52
        // lncli: `wallet gettx`
53
        // GetTransaction returns details for a transaction found in the wallet.
54
        GetTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*lnrpc.Transaction, error)
55
        // lncli: `wallet accounts list`
56
        // ListAccounts retrieves all accounts belonging to the wallet by default. A
57
        // name and key scope filter can be provided to filter through all of the
58
        // wallet accounts and return only those matching.
59
        ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error)
60
        // lncli: `wallet requiredreserve`
61
        // RequiredReserve returns the minimum amount of satoshis that should be kept
62
        // in the wallet in order to fee bump anchor channels if necessary. The value
63
        // scales with the number of public anchor channels but is capped at a maximum.
64
        RequiredReserve(ctx context.Context, in *RequiredReserveRequest, opts ...grpc.CallOption) (*RequiredReserveResponse, error)
65
        // lncli: `wallet addresses list`
66
        // ListAddresses retrieves all the addresses along with their balance. An
67
        // account name filter can be provided to filter through all of the
68
        // wallet accounts and return the addresses of only those matching.
69
        ListAddresses(ctx context.Context, in *ListAddressesRequest, opts ...grpc.CallOption) (*ListAddressesResponse, error)
70
        // lncli: `wallet addresses signmessage`
71
        // SignMessageWithAddr returns the compact signature (base64 encoded) created
72
        // with the private key of the provided address. This requires the address
73
        // to be solely based on a public key lock (no scripts). Obviously the internal
74
        // lnd wallet has to possess the private key of the address otherwise
75
        // an error is returned.
76
        //
77
        // This method aims to provide full compatibility with the bitcoin-core and
78
        // btcd implementation. Bitcoin-core's algorithm is not specified in a
79
        // BIP and only applicable for legacy addresses. This method enhances the
80
        // signing for additional address types: P2WKH, NP2WKH, P2TR.
81
        // For P2TR addresses this represents a special case. ECDSA is used to create
82
        // a compact signature which makes the public key of the signature recoverable.
83
        SignMessageWithAddr(ctx context.Context, in *SignMessageWithAddrRequest, opts ...grpc.CallOption) (*SignMessageWithAddrResponse, error)
84
        // lncli: `wallet addresses verifymessage`
85
        // VerifyMessageWithAddr returns the validity and the recovered public key of
86
        // the provided compact signature (base64 encoded). The verification is
87
        // twofold. First the validity of the signature itself is checked and then
88
        // it is verified that the recovered public key of the signature equals
89
        // the public key of the provided address. There is no dependence on the
90
        // private key of the address therefore also external addresses are allowed
91
        // to verify signatures.
92
        // Supported address types are P2PKH, P2WKH, NP2WKH, P2TR.
93
        //
94
        // This method is the counterpart of the related signing method
95
        // (SignMessageWithAddr) and aims to provide full compatibility to
96
        // bitcoin-core's implementation. Although bitcoin-core/btcd only provide
97
        // this functionality for legacy addresses this function enhances it to
98
        // the address types: P2PKH, P2WKH, NP2WKH, P2TR.
99
        //
100
        // The verification for P2TR addresses is a special case and requires the
101
        // ECDSA compact signature to compare the reovered public key to the internal
102
        // taproot key. The compact ECDSA signature format was used because there
103
        // are still no known compact signature schemes for schnorr signatures.
104
        VerifyMessageWithAddr(ctx context.Context, in *VerifyMessageWithAddrRequest, opts ...grpc.CallOption) (*VerifyMessageWithAddrResponse, error)
105
        // lncli: `wallet accounts import`
106
        // ImportAccount imports an account backed by an account extended public key.
107
        // The master key fingerprint denotes the fingerprint of the root key
108
        // corresponding to the account public key (also known as the key with
109
        // derivation path m/). This may be required by some hardware wallets for
110
        // proper identification and signing.
111
        //
112
        // The address type can usually be inferred from the key's version, but may be
113
        // required for certain keys to map them into the proper scope.
114
        //
115
        // For BIP-0044 keys, an address type must be specified as we intend to not
116
        // support importing BIP-0044 keys into the wallet using the legacy
117
        // pay-to-pubkey-hash (P2PKH) scheme. A nested witness address type will force
118
        // the standard BIP-0049 derivation scheme, while a witness address type will
119
        // force the standard BIP-0084 derivation scheme.
120
        //
121
        // For BIP-0049 keys, an address type must also be specified to make a
122
        // distinction between the standard BIP-0049 address schema (nested witness
123
        // pubkeys everywhere) and our own BIP-0049Plus address schema (nested pubkeys
124
        // externally, witness pubkeys internally).
125
        //
126
        // NOTE: Events (deposits/spends) for keys derived from an account will only be
127
        // detected by lnd if they happen after the import. Rescans to detect past
128
        // events will be supported later on.
129
        ImportAccount(ctx context.Context, in *ImportAccountRequest, opts ...grpc.CallOption) (*ImportAccountResponse, error)
130
        // lncli: `wallet accounts import-pubkey`
131
        // ImportPublicKey imports a public key as watch-only into the wallet. The
132
        // public key is converted into a simple address of the given type and that
133
        // address script is watched on chain. For Taproot keys, this will only watch
134
        // the BIP-0086 style output script. Use ImportTapscript for more advanced key
135
        // spend or script spend outputs.
136
        //
137
        // NOTE: Events (deposits/spends) for a key will only be detected by lnd if
138
        // they happen after the import. Rescans to detect past events will be
139
        // supported later on.
140
        ImportPublicKey(ctx context.Context, in *ImportPublicKeyRequest, opts ...grpc.CallOption) (*ImportPublicKeyResponse, error)
141
        // ImportTapscript imports a Taproot script and internal key and adds the
142
        // resulting Taproot output key as a watch-only output script into the wallet.
143
        // For BIP-0086 style Taproot keys (no root hash commitment and no script spend
144
        // path) use ImportPublicKey.
145
        //
146
        // NOTE: Events (deposits/spends) for a key will only be detected by lnd if
147
        // they happen after the import. Rescans to detect past events will be
148
        // supported later on.
149
        //
150
        // NOTE: Taproot keys imported through this RPC currently _cannot_ be used for
151
        // funding PSBTs. Only tracking the balance and UTXOs is currently supported.
152
        ImportTapscript(ctx context.Context, in *ImportTapscriptRequest, opts ...grpc.CallOption) (*ImportTapscriptResponse, error)
153
        // lncli: `wallet publishtx`
154
        // PublishTransaction attempts to publish the passed transaction to the
155
        // network. Once this returns without an error, the wallet will continually
156
        // attempt to re-broadcast the transaction on start up, until it enters the
157
        // chain.
158
        PublishTransaction(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*PublishResponse, error)
159
        // lncli: `wallet removetx`
160
        // RemoveTransaction attempts to remove the provided transaction from the
161
        // internal transaction store of the wallet.
162
        RemoveTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*RemoveTransactionResponse, error)
163
        // SendOutputs is similar to the existing sendmany call in Bitcoind, and
164
        // allows the caller to create a transaction that sends to several outputs at
165
        // once. This is ideal when wanting to batch create a set of transactions.
166
        SendOutputs(ctx context.Context, in *SendOutputsRequest, opts ...grpc.CallOption) (*SendOutputsResponse, error)
167
        // lncli: `wallet estimatefeerate`
168
        // EstimateFee attempts to query the internal fee estimator of the wallet to
169
        // determine the fee (in sat/kw) to attach to a transaction in order to
170
        // achieve the confirmation target.
171
        EstimateFee(ctx context.Context, in *EstimateFeeRequest, opts ...grpc.CallOption) (*EstimateFeeResponse, error)
172
        // lncli: `wallet pendingsweeps`
173
        // PendingSweeps returns lists of on-chain outputs that lnd is currently
174
        // attempting to sweep within its central batching engine. Outputs with similar
175
        // fee rates are batched together in order to sweep them within a single
176
        // transaction.
177
        //
178
        // NOTE: Some of the fields within PendingSweepsRequest are not guaranteed to
179
        // remain supported. This is an advanced API that depends on the internals of
180
        // the UtxoSweeper, so things may change.
181
        PendingSweeps(ctx context.Context, in *PendingSweepsRequest, opts ...grpc.CallOption) (*PendingSweepsResponse, error)
182
        // lncli: `wallet bumpfee`
183
        // BumpFee is an endpoint that allows users to interact with lnd's sweeper
184
        // directly. It takes an outpoint from an unconfirmed transaction and sends it
185
        // to the sweeper for potential fee bumping. Depending on whether the outpoint
186
        // has been registered in the sweeper (an existing input, e.g., an anchor
187
        // output) or not (a new input, e.g., an unconfirmed wallet utxo), this will
188
        // either be an RBF or CPFP attempt.
189
        //
190
        // When receiving an input, lnd’s sweeper needs to understand its time
191
        // sensitivity to make economical fee bumps - internally a fee function is
192
        // created using the deadline and budget to guide the process. When the
193
        // deadline is approaching, the fee function will increase the fee rate and
194
        // perform an RBF.
195
        //
196
        // When a force close happens, all the outputs from the force closing
197
        // transaction will be registered in the sweeper. The sweeper will then handle
198
        // the creation, publish, and fee bumping of the sweeping transactions.
199
        // Everytime a new block comes in, unless the sweeping transaction is
200
        // confirmed, an RBF is attempted. To interfere with this automatic process,
201
        // users can use BumpFee to specify customized fee rate, budget, deadline, and
202
        // whether the sweep should happen immediately. It's recommended to call
203
        // `ListSweeps` to understand the shape of the existing sweeping transaction
204
        // first - depending on the number of inputs in this transaction, the RBF
205
        // requirements can be quite different.
206
        //
207
        // This RPC also serves useful when wanting to perform a Child-Pays-For-Parent
208
        // (CPFP), where the child transaction pays for its parent's fee. This can be
209
        // done by specifying an outpoint within the low fee transaction that is under
210
        // the control of the wallet.
211
        BumpFee(ctx context.Context, in *BumpFeeRequest, opts ...grpc.CallOption) (*BumpFeeResponse, error)
212
        // lncli: `wallet bumpforceclosefee`
213
        // BumpForceCloseFee is an endpoint that allows users to bump the fee of a
214
        // channel force close. This only works for channels with option_anchors.
215
        BumpForceCloseFee(ctx context.Context, in *BumpForceCloseFeeRequest, opts ...grpc.CallOption) (*BumpForceCloseFeeResponse, error)
216
        // lncli: `wallet listsweeps`
217
        // ListSweeps returns a list of the sweep transactions our node has produced.
218
        // Note that these sweeps may not be confirmed yet, as we record sweeps on
219
        // broadcast, not confirmation.
220
        ListSweeps(ctx context.Context, in *ListSweepsRequest, opts ...grpc.CallOption) (*ListSweepsResponse, error)
221
        // lncli: `wallet labeltx`
222
        // LabelTransaction adds a label to a transaction. If the transaction already
223
        // has a label the call will fail unless the overwrite bool is set. This will
224
        // overwrite the existing transaction label. Labels must not be empty, and
225
        // cannot exceed 500 characters.
226
        LabelTransaction(ctx context.Context, in *LabelTransactionRequest, opts ...grpc.CallOption) (*LabelTransactionResponse, error)
227
        // lncli: `wallet psbt fund`
228
        // FundPsbt creates a fully populated PSBT that contains enough inputs to fund
229
        // the outputs specified in the template. There are three ways a user can
230
        // specify what we call the template (a list of inputs and outputs to use in
231
        // the PSBT): Either as a PSBT packet directly with no coin selection (using
232
        // the legacy "psbt" field), a PSBT with advanced coin selection support (using
233
        // the new "coin_select" field) or as a raw RPC message (using the "raw"
234
        // field).
235
        // The legacy "psbt" and "raw" modes, the following restrictions apply:
236
        // 1. If there are no inputs specified in the template, coin selection is
237
        // performed automatically.
238
        // 2. If the template does contain any inputs, it is assumed that full
239
        // coin selection happened externally and no additional inputs are added. If
240
        // the specified inputs aren't enough to fund the outputs with the given fee
241
        // rate, an error is returned.
242
        //
243
        // The new "coin_select" mode does not have these restrictions and allows the
244
        // user to specify a PSBT with inputs and outputs and still perform coin
245
        // selection on top of that.
246
        // For all modes this RPC requires any inputs that are specified to be locked
247
        // by the user (if they belong to this node in the first place).
248
        //
249
        // After either selecting or verifying the inputs, all input UTXOs are locked
250
        // with an internal app ID.
251
        //
252
        // NOTE: If this method returns without an error, it is the caller's
253
        // responsibility to either spend the locked UTXOs (by finalizing and then
254
        // publishing the transaction) or to unlock/release the locked UTXOs in case of
255
        // an error on the caller's side.
256
        FundPsbt(ctx context.Context, in *FundPsbtRequest, opts ...grpc.CallOption) (*FundPsbtResponse, error)
257
        // SignPsbt expects a partial transaction with all inputs and outputs fully
258
        // declared and tries to sign all unsigned inputs that have all required fields
259
        // (UTXO information, BIP32 derivation information, witness or sig scripts)
260
        // set.
261
        // If no error is returned, the PSBT is ready to be given to the next signer or
262
        // to be finalized if lnd was the last signer.
263
        //
264
        // NOTE: This RPC only signs inputs (and only those it can sign), it does not
265
        // perform any other tasks (such as coin selection, UTXO locking or
266
        // input/output/fee value validation, PSBT finalization). Any input that is
267
        // incomplete will be skipped.
268
        SignPsbt(ctx context.Context, in *SignPsbtRequest, opts ...grpc.CallOption) (*SignPsbtResponse, error)
269
        // lncli: `wallet psbt finalize`
270
        // FinalizePsbt expects a partial transaction with all inputs and outputs fully
271
        // declared and tries to sign all inputs that belong to the wallet. Lnd must be
272
        // the last signer of the transaction. That means, if there are any unsigned
273
        // non-witness inputs or inputs without UTXO information attached or inputs
274
        // without witness data that do not belong to lnd's wallet, this method will
275
        // fail. If no error is returned, the PSBT is ready to be extracted and the
276
        // final TX within to be broadcast.
277
        //
278
        // NOTE: This method does NOT publish the transaction once finalized. It is the
279
        // caller's responsibility to either publish the transaction on success or
280
        // unlock/release any locked UTXOs in case of an error in this method.
281
        FinalizePsbt(ctx context.Context, in *FinalizePsbtRequest, opts ...grpc.CallOption) (*FinalizePsbtResponse, error)
282
}
283

284
type walletKitClient struct {
285
        cc grpc.ClientConnInterface
286
}
287

288
func NewWalletKitClient(cc grpc.ClientConnInterface) WalletKitClient {
×
289
        return &walletKitClient{cc}
×
290
}
×
291

292
func (c *walletKitClient) ListUnspent(ctx context.Context, in *ListUnspentRequest, opts ...grpc.CallOption) (*ListUnspentResponse, error) {
×
293
        out := new(ListUnspentResponse)
×
294
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/ListUnspent", in, out, opts...)
×
295
        if err != nil {
×
296
                return nil, err
×
297
        }
×
298
        return out, nil
×
299
}
300

301
func (c *walletKitClient) LeaseOutput(ctx context.Context, in *LeaseOutputRequest, opts ...grpc.CallOption) (*LeaseOutputResponse, error) {
×
302
        out := new(LeaseOutputResponse)
×
303
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/LeaseOutput", in, out, opts...)
×
304
        if err != nil {
×
305
                return nil, err
×
306
        }
×
307
        return out, nil
×
308
}
309

310
func (c *walletKitClient) ReleaseOutput(ctx context.Context, in *ReleaseOutputRequest, opts ...grpc.CallOption) (*ReleaseOutputResponse, error) {
×
311
        out := new(ReleaseOutputResponse)
×
312
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/ReleaseOutput", in, out, opts...)
×
313
        if err != nil {
×
314
                return nil, err
×
315
        }
×
316
        return out, nil
×
317
}
318

319
func (c *walletKitClient) ListLeases(ctx context.Context, in *ListLeasesRequest, opts ...grpc.CallOption) (*ListLeasesResponse, error) {
×
320
        out := new(ListLeasesResponse)
×
321
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/ListLeases", in, out, opts...)
×
322
        if err != nil {
×
323
                return nil, err
×
324
        }
×
325
        return out, nil
×
326
}
327

328
func (c *walletKitClient) DeriveNextKey(ctx context.Context, in *KeyReq, opts ...grpc.CallOption) (*signrpc.KeyDescriptor, error) {
×
329
        out := new(signrpc.KeyDescriptor)
×
330
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/DeriveNextKey", in, out, opts...)
×
331
        if err != nil {
×
332
                return nil, err
×
333
        }
×
334
        return out, nil
×
335
}
336

337
func (c *walletKitClient) DeriveKey(ctx context.Context, in *signrpc.KeyLocator, opts ...grpc.CallOption) (*signrpc.KeyDescriptor, error) {
×
338
        out := new(signrpc.KeyDescriptor)
×
339
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/DeriveKey", in, out, opts...)
×
340
        if err != nil {
×
341
                return nil, err
×
342
        }
×
343
        return out, nil
×
344
}
345

346
func (c *walletKitClient) NextAddr(ctx context.Context, in *AddrRequest, opts ...grpc.CallOption) (*AddrResponse, error) {
×
347
        out := new(AddrResponse)
×
348
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/NextAddr", in, out, opts...)
×
349
        if err != nil {
×
350
                return nil, err
×
351
        }
×
352
        return out, nil
×
353
}
354

355
func (c *walletKitClient) GetTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*lnrpc.Transaction, error) {
×
356
        out := new(lnrpc.Transaction)
×
357
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/GetTransaction", in, out, opts...)
×
358
        if err != nil {
×
359
                return nil, err
×
360
        }
×
361
        return out, nil
×
362
}
363

364
func (c *walletKitClient) ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) {
×
365
        out := new(ListAccountsResponse)
×
366
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/ListAccounts", in, out, opts...)
×
367
        if err != nil {
×
368
                return nil, err
×
369
        }
×
370
        return out, nil
×
371
}
372

373
func (c *walletKitClient) RequiredReserve(ctx context.Context, in *RequiredReserveRequest, opts ...grpc.CallOption) (*RequiredReserveResponse, error) {
×
374
        out := new(RequiredReserveResponse)
×
375
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/RequiredReserve", in, out, opts...)
×
376
        if err != nil {
×
377
                return nil, err
×
378
        }
×
379
        return out, nil
×
380
}
381

382
func (c *walletKitClient) ListAddresses(ctx context.Context, in *ListAddressesRequest, opts ...grpc.CallOption) (*ListAddressesResponse, error) {
×
383
        out := new(ListAddressesResponse)
×
384
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/ListAddresses", in, out, opts...)
×
385
        if err != nil {
×
386
                return nil, err
×
387
        }
×
388
        return out, nil
×
389
}
390

391
func (c *walletKitClient) SignMessageWithAddr(ctx context.Context, in *SignMessageWithAddrRequest, opts ...grpc.CallOption) (*SignMessageWithAddrResponse, error) {
×
392
        out := new(SignMessageWithAddrResponse)
×
393
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/SignMessageWithAddr", in, out, opts...)
×
394
        if err != nil {
×
395
                return nil, err
×
396
        }
×
397
        return out, nil
×
398
}
399

400
func (c *walletKitClient) VerifyMessageWithAddr(ctx context.Context, in *VerifyMessageWithAddrRequest, opts ...grpc.CallOption) (*VerifyMessageWithAddrResponse, error) {
×
401
        out := new(VerifyMessageWithAddrResponse)
×
402
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/VerifyMessageWithAddr", in, out, opts...)
×
403
        if err != nil {
×
404
                return nil, err
×
405
        }
×
406
        return out, nil
×
407
}
408

409
func (c *walletKitClient) ImportAccount(ctx context.Context, in *ImportAccountRequest, opts ...grpc.CallOption) (*ImportAccountResponse, error) {
×
410
        out := new(ImportAccountResponse)
×
411
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/ImportAccount", in, out, opts...)
×
412
        if err != nil {
×
413
                return nil, err
×
414
        }
×
415
        return out, nil
×
416
}
417

418
func (c *walletKitClient) ImportPublicKey(ctx context.Context, in *ImportPublicKeyRequest, opts ...grpc.CallOption) (*ImportPublicKeyResponse, error) {
×
419
        out := new(ImportPublicKeyResponse)
×
420
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/ImportPublicKey", in, out, opts...)
×
421
        if err != nil {
×
422
                return nil, err
×
423
        }
×
424
        return out, nil
×
425
}
426

427
func (c *walletKitClient) ImportTapscript(ctx context.Context, in *ImportTapscriptRequest, opts ...grpc.CallOption) (*ImportTapscriptResponse, error) {
×
428
        out := new(ImportTapscriptResponse)
×
429
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/ImportTapscript", in, out, opts...)
×
430
        if err != nil {
×
431
                return nil, err
×
432
        }
×
433
        return out, nil
×
434
}
435

436
func (c *walletKitClient) PublishTransaction(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*PublishResponse, error) {
×
437
        out := new(PublishResponse)
×
438
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/PublishTransaction", in, out, opts...)
×
439
        if err != nil {
×
440
                return nil, err
×
441
        }
×
442
        return out, nil
×
443
}
444

445
func (c *walletKitClient) RemoveTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*RemoveTransactionResponse, error) {
×
446
        out := new(RemoveTransactionResponse)
×
447
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/RemoveTransaction", in, out, opts...)
×
448
        if err != nil {
×
449
                return nil, err
×
450
        }
×
451
        return out, nil
×
452
}
453

454
func (c *walletKitClient) SendOutputs(ctx context.Context, in *SendOutputsRequest, opts ...grpc.CallOption) (*SendOutputsResponse, error) {
×
455
        out := new(SendOutputsResponse)
×
456
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/SendOutputs", in, out, opts...)
×
457
        if err != nil {
×
458
                return nil, err
×
459
        }
×
460
        return out, nil
×
461
}
462

463
func (c *walletKitClient) EstimateFee(ctx context.Context, in *EstimateFeeRequest, opts ...grpc.CallOption) (*EstimateFeeResponse, error) {
×
464
        out := new(EstimateFeeResponse)
×
465
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/EstimateFee", in, out, opts...)
×
466
        if err != nil {
×
467
                return nil, err
×
468
        }
×
469
        return out, nil
×
470
}
471

472
func (c *walletKitClient) PendingSweeps(ctx context.Context, in *PendingSweepsRequest, opts ...grpc.CallOption) (*PendingSweepsResponse, error) {
×
473
        out := new(PendingSweepsResponse)
×
474
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/PendingSweeps", in, out, opts...)
×
475
        if err != nil {
×
476
                return nil, err
×
477
        }
×
478
        return out, nil
×
479
}
480

481
func (c *walletKitClient) BumpFee(ctx context.Context, in *BumpFeeRequest, opts ...grpc.CallOption) (*BumpFeeResponse, error) {
×
482
        out := new(BumpFeeResponse)
×
483
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/BumpFee", in, out, opts...)
×
484
        if err != nil {
×
485
                return nil, err
×
486
        }
×
487
        return out, nil
×
488
}
489

490
func (c *walletKitClient) BumpForceCloseFee(ctx context.Context, in *BumpForceCloseFeeRequest, opts ...grpc.CallOption) (*BumpForceCloseFeeResponse, error) {
×
491
        out := new(BumpForceCloseFeeResponse)
×
492
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/BumpForceCloseFee", in, out, opts...)
×
493
        if err != nil {
×
494
                return nil, err
×
495
        }
×
496
        return out, nil
×
497
}
498

499
func (c *walletKitClient) ListSweeps(ctx context.Context, in *ListSweepsRequest, opts ...grpc.CallOption) (*ListSweepsResponse, error) {
×
500
        out := new(ListSweepsResponse)
×
501
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/ListSweeps", in, out, opts...)
×
502
        if err != nil {
×
503
                return nil, err
×
504
        }
×
505
        return out, nil
×
506
}
507

508
func (c *walletKitClient) LabelTransaction(ctx context.Context, in *LabelTransactionRequest, opts ...grpc.CallOption) (*LabelTransactionResponse, error) {
×
509
        out := new(LabelTransactionResponse)
×
510
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/LabelTransaction", in, out, opts...)
×
511
        if err != nil {
×
512
                return nil, err
×
513
        }
×
514
        return out, nil
×
515
}
516

517
func (c *walletKitClient) FundPsbt(ctx context.Context, in *FundPsbtRequest, opts ...grpc.CallOption) (*FundPsbtResponse, error) {
×
518
        out := new(FundPsbtResponse)
×
519
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/FundPsbt", in, out, opts...)
×
520
        if err != nil {
×
521
                return nil, err
×
522
        }
×
523
        return out, nil
×
524
}
525

526
func (c *walletKitClient) SignPsbt(ctx context.Context, in *SignPsbtRequest, opts ...grpc.CallOption) (*SignPsbtResponse, error) {
×
527
        out := new(SignPsbtResponse)
×
528
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/SignPsbt", in, out, opts...)
×
529
        if err != nil {
×
530
                return nil, err
×
531
        }
×
532
        return out, nil
×
533
}
534

535
func (c *walletKitClient) FinalizePsbt(ctx context.Context, in *FinalizePsbtRequest, opts ...grpc.CallOption) (*FinalizePsbtResponse, error) {
×
536
        out := new(FinalizePsbtResponse)
×
537
        err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/FinalizePsbt", in, out, opts...)
×
538
        if err != nil {
×
539
                return nil, err
×
540
        }
×
541
        return out, nil
×
542
}
543

544
// WalletKitServer is the server API for WalletKit service.
545
// All implementations must embed UnimplementedWalletKitServer
546
// for forward compatibility
547
type WalletKitServer interface {
548
        // ListUnspent returns a list of all utxos spendable by the wallet with a
549
        // number of confirmations between the specified minimum and maximum. By
550
        // default, all utxos are listed. To list only the unconfirmed utxos, set
551
        // the unconfirmed_only to true.
552
        ListUnspent(context.Context, *ListUnspentRequest) (*ListUnspentResponse, error)
553
        // lncli: `wallet leaseoutput`
554
        // LeaseOutput locks an output to the given ID, preventing it from being
555
        // available for any future coin selection attempts. The absolute time of the
556
        // lock's expiration is returned. The expiration of the lock can be extended by
557
        // successive invocations of this RPC. Outputs can be unlocked before their
558
        // expiration through `ReleaseOutput`.
559
        LeaseOutput(context.Context, *LeaseOutputRequest) (*LeaseOutputResponse, error)
560
        // lncli: `wallet releaseoutput`
561
        // ReleaseOutput unlocks an output, allowing it to be available for coin
562
        // selection if it remains unspent. The ID should match the one used to
563
        // originally lock the output.
564
        ReleaseOutput(context.Context, *ReleaseOutputRequest) (*ReleaseOutputResponse, error)
565
        // lncli: `wallet listleases`
566
        // ListLeases lists all currently locked utxos.
567
        ListLeases(context.Context, *ListLeasesRequest) (*ListLeasesResponse, error)
568
        // DeriveNextKey attempts to derive the *next* key within the key family
569
        // (account in BIP43) specified. This method should return the next external
570
        // child within this branch.
571
        DeriveNextKey(context.Context, *KeyReq) (*signrpc.KeyDescriptor, error)
572
        // DeriveKey attempts to derive an arbitrary key specified by the passed
573
        // KeyLocator.
574
        DeriveKey(context.Context, *signrpc.KeyLocator) (*signrpc.KeyDescriptor, error)
575
        // NextAddr returns the next unused address within the wallet.
576
        NextAddr(context.Context, *AddrRequest) (*AddrResponse, error)
577
        // lncli: `wallet gettx`
578
        // GetTransaction returns details for a transaction found in the wallet.
579
        GetTransaction(context.Context, *GetTransactionRequest) (*lnrpc.Transaction, error)
580
        // lncli: `wallet accounts list`
581
        // ListAccounts retrieves all accounts belonging to the wallet by default. A
582
        // name and key scope filter can be provided to filter through all of the
583
        // wallet accounts and return only those matching.
584
        ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
585
        // lncli: `wallet requiredreserve`
586
        // RequiredReserve returns the minimum amount of satoshis that should be kept
587
        // in the wallet in order to fee bump anchor channels if necessary. The value
588
        // scales with the number of public anchor channels but is capped at a maximum.
589
        RequiredReserve(context.Context, *RequiredReserveRequest) (*RequiredReserveResponse, error)
590
        // lncli: `wallet addresses list`
591
        // ListAddresses retrieves all the addresses along with their balance. An
592
        // account name filter can be provided to filter through all of the
593
        // wallet accounts and return the addresses of only those matching.
594
        ListAddresses(context.Context, *ListAddressesRequest) (*ListAddressesResponse, error)
595
        // lncli: `wallet addresses signmessage`
596
        // SignMessageWithAddr returns the compact signature (base64 encoded) created
597
        // with the private key of the provided address. This requires the address
598
        // to be solely based on a public key lock (no scripts). Obviously the internal
599
        // lnd wallet has to possess the private key of the address otherwise
600
        // an error is returned.
601
        //
602
        // This method aims to provide full compatibility with the bitcoin-core and
603
        // btcd implementation. Bitcoin-core's algorithm is not specified in a
604
        // BIP and only applicable for legacy addresses. This method enhances the
605
        // signing for additional address types: P2WKH, NP2WKH, P2TR.
606
        // For P2TR addresses this represents a special case. ECDSA is used to create
607
        // a compact signature which makes the public key of the signature recoverable.
608
        SignMessageWithAddr(context.Context, *SignMessageWithAddrRequest) (*SignMessageWithAddrResponse, error)
609
        // lncli: `wallet addresses verifymessage`
610
        // VerifyMessageWithAddr returns the validity and the recovered public key of
611
        // the provided compact signature (base64 encoded). The verification is
612
        // twofold. First the validity of the signature itself is checked and then
613
        // it is verified that the recovered public key of the signature equals
614
        // the public key of the provided address. There is no dependence on the
615
        // private key of the address therefore also external addresses are allowed
616
        // to verify signatures.
617
        // Supported address types are P2PKH, P2WKH, NP2WKH, P2TR.
618
        //
619
        // This method is the counterpart of the related signing method
620
        // (SignMessageWithAddr) and aims to provide full compatibility to
621
        // bitcoin-core's implementation. Although bitcoin-core/btcd only provide
622
        // this functionality for legacy addresses this function enhances it to
623
        // the address types: P2PKH, P2WKH, NP2WKH, P2TR.
624
        //
625
        // The verification for P2TR addresses is a special case and requires the
626
        // ECDSA compact signature to compare the reovered public key to the internal
627
        // taproot key. The compact ECDSA signature format was used because there
628
        // are still no known compact signature schemes for schnorr signatures.
629
        VerifyMessageWithAddr(context.Context, *VerifyMessageWithAddrRequest) (*VerifyMessageWithAddrResponse, error)
630
        // lncli: `wallet accounts import`
631
        // ImportAccount imports an account backed by an account extended public key.
632
        // The master key fingerprint denotes the fingerprint of the root key
633
        // corresponding to the account public key (also known as the key with
634
        // derivation path m/). This may be required by some hardware wallets for
635
        // proper identification and signing.
636
        //
637
        // The address type can usually be inferred from the key's version, but may be
638
        // required for certain keys to map them into the proper scope.
639
        //
640
        // For BIP-0044 keys, an address type must be specified as we intend to not
641
        // support importing BIP-0044 keys into the wallet using the legacy
642
        // pay-to-pubkey-hash (P2PKH) scheme. A nested witness address type will force
643
        // the standard BIP-0049 derivation scheme, while a witness address type will
644
        // force the standard BIP-0084 derivation scheme.
645
        //
646
        // For BIP-0049 keys, an address type must also be specified to make a
647
        // distinction between the standard BIP-0049 address schema (nested witness
648
        // pubkeys everywhere) and our own BIP-0049Plus address schema (nested pubkeys
649
        // externally, witness pubkeys internally).
650
        //
651
        // NOTE: Events (deposits/spends) for keys derived from an account will only be
652
        // detected by lnd if they happen after the import. Rescans to detect past
653
        // events will be supported later on.
654
        ImportAccount(context.Context, *ImportAccountRequest) (*ImportAccountResponse, error)
655
        // lncli: `wallet accounts import-pubkey`
656
        // ImportPublicKey imports a public key as watch-only into the wallet. The
657
        // public key is converted into a simple address of the given type and that
658
        // address script is watched on chain. For Taproot keys, this will only watch
659
        // the BIP-0086 style output script. Use ImportTapscript for more advanced key
660
        // spend or script spend outputs.
661
        //
662
        // NOTE: Events (deposits/spends) for a key will only be detected by lnd if
663
        // they happen after the import. Rescans to detect past events will be
664
        // supported later on.
665
        ImportPublicKey(context.Context, *ImportPublicKeyRequest) (*ImportPublicKeyResponse, error)
666
        // ImportTapscript imports a Taproot script and internal key and adds the
667
        // resulting Taproot output key as a watch-only output script into the wallet.
668
        // For BIP-0086 style Taproot keys (no root hash commitment and no script spend
669
        // path) use ImportPublicKey.
670
        //
671
        // NOTE: Events (deposits/spends) for a key will only be detected by lnd if
672
        // they happen after the import. Rescans to detect past events will be
673
        // supported later on.
674
        //
675
        // NOTE: Taproot keys imported through this RPC currently _cannot_ be used for
676
        // funding PSBTs. Only tracking the balance and UTXOs is currently supported.
677
        ImportTapscript(context.Context, *ImportTapscriptRequest) (*ImportTapscriptResponse, error)
678
        // lncli: `wallet publishtx`
679
        // PublishTransaction attempts to publish the passed transaction to the
680
        // network. Once this returns without an error, the wallet will continually
681
        // attempt to re-broadcast the transaction on start up, until it enters the
682
        // chain.
683
        PublishTransaction(context.Context, *Transaction) (*PublishResponse, error)
684
        // lncli: `wallet removetx`
685
        // RemoveTransaction attempts to remove the provided transaction from the
686
        // internal transaction store of the wallet.
687
        RemoveTransaction(context.Context, *GetTransactionRequest) (*RemoveTransactionResponse, error)
688
        // SendOutputs is similar to the existing sendmany call in Bitcoind, and
689
        // allows the caller to create a transaction that sends to several outputs at
690
        // once. This is ideal when wanting to batch create a set of transactions.
691
        SendOutputs(context.Context, *SendOutputsRequest) (*SendOutputsResponse, error)
692
        // lncli: `wallet estimatefeerate`
693
        // EstimateFee attempts to query the internal fee estimator of the wallet to
694
        // determine the fee (in sat/kw) to attach to a transaction in order to
695
        // achieve the confirmation target.
696
        EstimateFee(context.Context, *EstimateFeeRequest) (*EstimateFeeResponse, error)
697
        // lncli: `wallet pendingsweeps`
698
        // PendingSweeps returns lists of on-chain outputs that lnd is currently
699
        // attempting to sweep within its central batching engine. Outputs with similar
700
        // fee rates are batched together in order to sweep them within a single
701
        // transaction.
702
        //
703
        // NOTE: Some of the fields within PendingSweepsRequest are not guaranteed to
704
        // remain supported. This is an advanced API that depends on the internals of
705
        // the UtxoSweeper, so things may change.
706
        PendingSweeps(context.Context, *PendingSweepsRequest) (*PendingSweepsResponse, error)
707
        // lncli: `wallet bumpfee`
708
        // BumpFee is an endpoint that allows users to interact with lnd's sweeper
709
        // directly. It takes an outpoint from an unconfirmed transaction and sends it
710
        // to the sweeper for potential fee bumping. Depending on whether the outpoint
711
        // has been registered in the sweeper (an existing input, e.g., an anchor
712
        // output) or not (a new input, e.g., an unconfirmed wallet utxo), this will
713
        // either be an RBF or CPFP attempt.
714
        //
715
        // When receiving an input, lnd’s sweeper needs to understand its time
716
        // sensitivity to make economical fee bumps - internally a fee function is
717
        // created using the deadline and budget to guide the process. When the
718
        // deadline is approaching, the fee function will increase the fee rate and
719
        // perform an RBF.
720
        //
721
        // When a force close happens, all the outputs from the force closing
722
        // transaction will be registered in the sweeper. The sweeper will then handle
723
        // the creation, publish, and fee bumping of the sweeping transactions.
724
        // Everytime a new block comes in, unless the sweeping transaction is
725
        // confirmed, an RBF is attempted. To interfere with this automatic process,
726
        // users can use BumpFee to specify customized fee rate, budget, deadline, and
727
        // whether the sweep should happen immediately. It's recommended to call
728
        // `ListSweeps` to understand the shape of the existing sweeping transaction
729
        // first - depending on the number of inputs in this transaction, the RBF
730
        // requirements can be quite different.
731
        //
732
        // This RPC also serves useful when wanting to perform a Child-Pays-For-Parent
733
        // (CPFP), where the child transaction pays for its parent's fee. This can be
734
        // done by specifying an outpoint within the low fee transaction that is under
735
        // the control of the wallet.
736
        BumpFee(context.Context, *BumpFeeRequest) (*BumpFeeResponse, error)
737
        // lncli: `wallet bumpforceclosefee`
738
        // BumpForceCloseFee is an endpoint that allows users to bump the fee of a
739
        // channel force close. This only works for channels with option_anchors.
740
        BumpForceCloseFee(context.Context, *BumpForceCloseFeeRequest) (*BumpForceCloseFeeResponse, error)
741
        // lncli: `wallet listsweeps`
742
        // ListSweeps returns a list of the sweep transactions our node has produced.
743
        // Note that these sweeps may not be confirmed yet, as we record sweeps on
744
        // broadcast, not confirmation.
745
        ListSweeps(context.Context, *ListSweepsRequest) (*ListSweepsResponse, error)
746
        // lncli: `wallet labeltx`
747
        // LabelTransaction adds a label to a transaction. If the transaction already
748
        // has a label the call will fail unless the overwrite bool is set. This will
749
        // overwrite the existing transaction label. Labels must not be empty, and
750
        // cannot exceed 500 characters.
751
        LabelTransaction(context.Context, *LabelTransactionRequest) (*LabelTransactionResponse, error)
752
        // lncli: `wallet psbt fund`
753
        // FundPsbt creates a fully populated PSBT that contains enough inputs to fund
754
        // the outputs specified in the template. There are three ways a user can
755
        // specify what we call the template (a list of inputs and outputs to use in
756
        // the PSBT): Either as a PSBT packet directly with no coin selection (using
757
        // the legacy "psbt" field), a PSBT with advanced coin selection support (using
758
        // the new "coin_select" field) or as a raw RPC message (using the "raw"
759
        // field).
760
        // The legacy "psbt" and "raw" modes, the following restrictions apply:
761
        // 1. If there are no inputs specified in the template, coin selection is
762
        // performed automatically.
763
        // 2. If the template does contain any inputs, it is assumed that full
764
        // coin selection happened externally and no additional inputs are added. If
765
        // the specified inputs aren't enough to fund the outputs with the given fee
766
        // rate, an error is returned.
767
        //
768
        // The new "coin_select" mode does not have these restrictions and allows the
769
        // user to specify a PSBT with inputs and outputs and still perform coin
770
        // selection on top of that.
771
        // For all modes this RPC requires any inputs that are specified to be locked
772
        // by the user (if they belong to this node in the first place).
773
        //
774
        // After either selecting or verifying the inputs, all input UTXOs are locked
775
        // with an internal app ID.
776
        //
777
        // NOTE: If this method returns without an error, it is the caller's
778
        // responsibility to either spend the locked UTXOs (by finalizing and then
779
        // publishing the transaction) or to unlock/release the locked UTXOs in case of
780
        // an error on the caller's side.
781
        FundPsbt(context.Context, *FundPsbtRequest) (*FundPsbtResponse, error)
782
        // SignPsbt expects a partial transaction with all inputs and outputs fully
783
        // declared and tries to sign all unsigned inputs that have all required fields
784
        // (UTXO information, BIP32 derivation information, witness or sig scripts)
785
        // set.
786
        // If no error is returned, the PSBT is ready to be given to the next signer or
787
        // to be finalized if lnd was the last signer.
788
        //
789
        // NOTE: This RPC only signs inputs (and only those it can sign), it does not
790
        // perform any other tasks (such as coin selection, UTXO locking or
791
        // input/output/fee value validation, PSBT finalization). Any input that is
792
        // incomplete will be skipped.
793
        SignPsbt(context.Context, *SignPsbtRequest) (*SignPsbtResponse, error)
794
        // lncli: `wallet psbt finalize`
795
        // FinalizePsbt expects a partial transaction with all inputs and outputs fully
796
        // declared and tries to sign all inputs that belong to the wallet. Lnd must be
797
        // the last signer of the transaction. That means, if there are any unsigned
798
        // non-witness inputs or inputs without UTXO information attached or inputs
799
        // without witness data that do not belong to lnd's wallet, this method will
800
        // fail. If no error is returned, the PSBT is ready to be extracted and the
801
        // final TX within to be broadcast.
802
        //
803
        // NOTE: This method does NOT publish the transaction once finalized. It is the
804
        // caller's responsibility to either publish the transaction on success or
805
        // unlock/release any locked UTXOs in case of an error in this method.
806
        FinalizePsbt(context.Context, *FinalizePsbtRequest) (*FinalizePsbtResponse, error)
807
        mustEmbedUnimplementedWalletKitServer()
808
}
809

810
// UnimplementedWalletKitServer must be embedded to have forward compatible implementations.
811
type UnimplementedWalletKitServer struct {
812
}
813

814
func (UnimplementedWalletKitServer) ListUnspent(context.Context, *ListUnspentRequest) (*ListUnspentResponse, error) {
×
815
        return nil, status.Errorf(codes.Unimplemented, "method ListUnspent not implemented")
×
816
}
×
817
func (UnimplementedWalletKitServer) LeaseOutput(context.Context, *LeaseOutputRequest) (*LeaseOutputResponse, error) {
×
818
        return nil, status.Errorf(codes.Unimplemented, "method LeaseOutput not implemented")
×
819
}
×
820
func (UnimplementedWalletKitServer) ReleaseOutput(context.Context, *ReleaseOutputRequest) (*ReleaseOutputResponse, error) {
×
821
        return nil, status.Errorf(codes.Unimplemented, "method ReleaseOutput not implemented")
×
822
}
×
823
func (UnimplementedWalletKitServer) ListLeases(context.Context, *ListLeasesRequest) (*ListLeasesResponse, error) {
×
824
        return nil, status.Errorf(codes.Unimplemented, "method ListLeases not implemented")
×
825
}
×
826
func (UnimplementedWalletKitServer) DeriveNextKey(context.Context, *KeyReq) (*signrpc.KeyDescriptor, error) {
×
827
        return nil, status.Errorf(codes.Unimplemented, "method DeriveNextKey not implemented")
×
828
}
×
829
func (UnimplementedWalletKitServer) DeriveKey(context.Context, *signrpc.KeyLocator) (*signrpc.KeyDescriptor, error) {
×
830
        return nil, status.Errorf(codes.Unimplemented, "method DeriveKey not implemented")
×
831
}
×
832
func (UnimplementedWalletKitServer) NextAddr(context.Context, *AddrRequest) (*AddrResponse, error) {
×
833
        return nil, status.Errorf(codes.Unimplemented, "method NextAddr not implemented")
×
834
}
×
835
func (UnimplementedWalletKitServer) GetTransaction(context.Context, *GetTransactionRequest) (*lnrpc.Transaction, error) {
×
836
        return nil, status.Errorf(codes.Unimplemented, "method GetTransaction not implemented")
×
837
}
×
838
func (UnimplementedWalletKitServer) ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error) {
×
839
        return nil, status.Errorf(codes.Unimplemented, "method ListAccounts not implemented")
×
840
}
×
841
func (UnimplementedWalletKitServer) RequiredReserve(context.Context, *RequiredReserveRequest) (*RequiredReserveResponse, error) {
×
842
        return nil, status.Errorf(codes.Unimplemented, "method RequiredReserve not implemented")
×
843
}
×
844
func (UnimplementedWalletKitServer) ListAddresses(context.Context, *ListAddressesRequest) (*ListAddressesResponse, error) {
×
845
        return nil, status.Errorf(codes.Unimplemented, "method ListAddresses not implemented")
×
846
}
×
847
func (UnimplementedWalletKitServer) SignMessageWithAddr(context.Context, *SignMessageWithAddrRequest) (*SignMessageWithAddrResponse, error) {
×
848
        return nil, status.Errorf(codes.Unimplemented, "method SignMessageWithAddr not implemented")
×
849
}
×
850
func (UnimplementedWalletKitServer) VerifyMessageWithAddr(context.Context, *VerifyMessageWithAddrRequest) (*VerifyMessageWithAddrResponse, error) {
×
851
        return nil, status.Errorf(codes.Unimplemented, "method VerifyMessageWithAddr not implemented")
×
852
}
×
853
func (UnimplementedWalletKitServer) ImportAccount(context.Context, *ImportAccountRequest) (*ImportAccountResponse, error) {
×
854
        return nil, status.Errorf(codes.Unimplemented, "method ImportAccount not implemented")
×
855
}
×
856
func (UnimplementedWalletKitServer) ImportPublicKey(context.Context, *ImportPublicKeyRequest) (*ImportPublicKeyResponse, error) {
×
857
        return nil, status.Errorf(codes.Unimplemented, "method ImportPublicKey not implemented")
×
858
}
×
859
func (UnimplementedWalletKitServer) ImportTapscript(context.Context, *ImportTapscriptRequest) (*ImportTapscriptResponse, error) {
×
860
        return nil, status.Errorf(codes.Unimplemented, "method ImportTapscript not implemented")
×
861
}
×
862
func (UnimplementedWalletKitServer) PublishTransaction(context.Context, *Transaction) (*PublishResponse, error) {
×
863
        return nil, status.Errorf(codes.Unimplemented, "method PublishTransaction not implemented")
×
864
}
×
865
func (UnimplementedWalletKitServer) RemoveTransaction(context.Context, *GetTransactionRequest) (*RemoveTransactionResponse, error) {
×
866
        return nil, status.Errorf(codes.Unimplemented, "method RemoveTransaction not implemented")
×
867
}
×
868
func (UnimplementedWalletKitServer) SendOutputs(context.Context, *SendOutputsRequest) (*SendOutputsResponse, error) {
×
869
        return nil, status.Errorf(codes.Unimplemented, "method SendOutputs not implemented")
×
870
}
×
871
func (UnimplementedWalletKitServer) EstimateFee(context.Context, *EstimateFeeRequest) (*EstimateFeeResponse, error) {
×
872
        return nil, status.Errorf(codes.Unimplemented, "method EstimateFee not implemented")
×
873
}
×
874
func (UnimplementedWalletKitServer) PendingSweeps(context.Context, *PendingSweepsRequest) (*PendingSweepsResponse, error) {
×
875
        return nil, status.Errorf(codes.Unimplemented, "method PendingSweeps not implemented")
×
876
}
×
877
func (UnimplementedWalletKitServer) BumpFee(context.Context, *BumpFeeRequest) (*BumpFeeResponse, error) {
×
878
        return nil, status.Errorf(codes.Unimplemented, "method BumpFee not implemented")
×
879
}
×
880
func (UnimplementedWalletKitServer) BumpForceCloseFee(context.Context, *BumpForceCloseFeeRequest) (*BumpForceCloseFeeResponse, error) {
×
881
        return nil, status.Errorf(codes.Unimplemented, "method BumpForceCloseFee not implemented")
×
882
}
×
883
func (UnimplementedWalletKitServer) ListSweeps(context.Context, *ListSweepsRequest) (*ListSweepsResponse, error) {
×
884
        return nil, status.Errorf(codes.Unimplemented, "method ListSweeps not implemented")
×
885
}
×
886
func (UnimplementedWalletKitServer) LabelTransaction(context.Context, *LabelTransactionRequest) (*LabelTransactionResponse, error) {
×
887
        return nil, status.Errorf(codes.Unimplemented, "method LabelTransaction not implemented")
×
888
}
×
889
func (UnimplementedWalletKitServer) FundPsbt(context.Context, *FundPsbtRequest) (*FundPsbtResponse, error) {
×
890
        return nil, status.Errorf(codes.Unimplemented, "method FundPsbt not implemented")
×
891
}
×
892
func (UnimplementedWalletKitServer) SignPsbt(context.Context, *SignPsbtRequest) (*SignPsbtResponse, error) {
×
893
        return nil, status.Errorf(codes.Unimplemented, "method SignPsbt not implemented")
×
894
}
×
895
func (UnimplementedWalletKitServer) FinalizePsbt(context.Context, *FinalizePsbtRequest) (*FinalizePsbtResponse, error) {
×
896
        return nil, status.Errorf(codes.Unimplemented, "method FinalizePsbt not implemented")
×
897
}
×
898
func (UnimplementedWalletKitServer) mustEmbedUnimplementedWalletKitServer() {}
×
899

900
// UnsafeWalletKitServer may be embedded to opt out of forward compatibility for this service.
901
// Use of this interface is not recommended, as added methods to WalletKitServer will
902
// result in compilation errors.
903
type UnsafeWalletKitServer interface {
904
        mustEmbedUnimplementedWalletKitServer()
905
}
906

907
func RegisterWalletKitServer(s grpc.ServiceRegistrar, srv WalletKitServer) {
×
908
        s.RegisterService(&WalletKit_ServiceDesc, srv)
×
909
}
×
910

911
func _WalletKit_ListUnspent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
912
        in := new(ListUnspentRequest)
×
913
        if err := dec(in); err != nil {
×
914
                return nil, err
×
915
        }
×
916
        if interceptor == nil {
×
917
                return srv.(WalletKitServer).ListUnspent(ctx, in)
×
918
        }
×
919
        info := &grpc.UnaryServerInfo{
×
920
                Server:     srv,
×
921
                FullMethod: "/walletrpc.WalletKit/ListUnspent",
×
922
        }
×
923
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
924
                return srv.(WalletKitServer).ListUnspent(ctx, req.(*ListUnspentRequest))
×
925
        }
×
926
        return interceptor(ctx, in, info, handler)
×
927
}
928

929
func _WalletKit_LeaseOutput_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
930
        in := new(LeaseOutputRequest)
×
931
        if err := dec(in); err != nil {
×
932
                return nil, err
×
933
        }
×
934
        if interceptor == nil {
×
935
                return srv.(WalletKitServer).LeaseOutput(ctx, in)
×
936
        }
×
937
        info := &grpc.UnaryServerInfo{
×
938
                Server:     srv,
×
939
                FullMethod: "/walletrpc.WalletKit/LeaseOutput",
×
940
        }
×
941
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
942
                return srv.(WalletKitServer).LeaseOutput(ctx, req.(*LeaseOutputRequest))
×
943
        }
×
944
        return interceptor(ctx, in, info, handler)
×
945
}
946

947
func _WalletKit_ReleaseOutput_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
948
        in := new(ReleaseOutputRequest)
×
949
        if err := dec(in); err != nil {
×
950
                return nil, err
×
951
        }
×
952
        if interceptor == nil {
×
953
                return srv.(WalletKitServer).ReleaseOutput(ctx, in)
×
954
        }
×
955
        info := &grpc.UnaryServerInfo{
×
956
                Server:     srv,
×
957
                FullMethod: "/walletrpc.WalletKit/ReleaseOutput",
×
958
        }
×
959
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
960
                return srv.(WalletKitServer).ReleaseOutput(ctx, req.(*ReleaseOutputRequest))
×
961
        }
×
962
        return interceptor(ctx, in, info, handler)
×
963
}
964

965
func _WalletKit_ListLeases_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
966
        in := new(ListLeasesRequest)
×
967
        if err := dec(in); err != nil {
×
968
                return nil, err
×
969
        }
×
970
        if interceptor == nil {
×
971
                return srv.(WalletKitServer).ListLeases(ctx, in)
×
972
        }
×
973
        info := &grpc.UnaryServerInfo{
×
974
                Server:     srv,
×
975
                FullMethod: "/walletrpc.WalletKit/ListLeases",
×
976
        }
×
977
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
978
                return srv.(WalletKitServer).ListLeases(ctx, req.(*ListLeasesRequest))
×
979
        }
×
980
        return interceptor(ctx, in, info, handler)
×
981
}
982

983
func _WalletKit_DeriveNextKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
984
        in := new(KeyReq)
×
985
        if err := dec(in); err != nil {
×
986
                return nil, err
×
987
        }
×
988
        if interceptor == nil {
×
989
                return srv.(WalletKitServer).DeriveNextKey(ctx, in)
×
990
        }
×
991
        info := &grpc.UnaryServerInfo{
×
992
                Server:     srv,
×
993
                FullMethod: "/walletrpc.WalletKit/DeriveNextKey",
×
994
        }
×
995
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
996
                return srv.(WalletKitServer).DeriveNextKey(ctx, req.(*KeyReq))
×
997
        }
×
998
        return interceptor(ctx, in, info, handler)
×
999
}
1000

1001
func _WalletKit_DeriveKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1002
        in := new(signrpc.KeyLocator)
×
1003
        if err := dec(in); err != nil {
×
1004
                return nil, err
×
1005
        }
×
1006
        if interceptor == nil {
×
1007
                return srv.(WalletKitServer).DeriveKey(ctx, in)
×
1008
        }
×
1009
        info := &grpc.UnaryServerInfo{
×
1010
                Server:     srv,
×
1011
                FullMethod: "/walletrpc.WalletKit/DeriveKey",
×
1012
        }
×
1013
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1014
                return srv.(WalletKitServer).DeriveKey(ctx, req.(*signrpc.KeyLocator))
×
1015
        }
×
1016
        return interceptor(ctx, in, info, handler)
×
1017
}
1018

1019
func _WalletKit_NextAddr_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1020
        in := new(AddrRequest)
×
1021
        if err := dec(in); err != nil {
×
1022
                return nil, err
×
1023
        }
×
1024
        if interceptor == nil {
×
1025
                return srv.(WalletKitServer).NextAddr(ctx, in)
×
1026
        }
×
1027
        info := &grpc.UnaryServerInfo{
×
1028
                Server:     srv,
×
1029
                FullMethod: "/walletrpc.WalletKit/NextAddr",
×
1030
        }
×
1031
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1032
                return srv.(WalletKitServer).NextAddr(ctx, req.(*AddrRequest))
×
1033
        }
×
1034
        return interceptor(ctx, in, info, handler)
×
1035
}
1036

1037
func _WalletKit_GetTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1038
        in := new(GetTransactionRequest)
×
1039
        if err := dec(in); err != nil {
×
1040
                return nil, err
×
1041
        }
×
1042
        if interceptor == nil {
×
1043
                return srv.(WalletKitServer).GetTransaction(ctx, in)
×
1044
        }
×
1045
        info := &grpc.UnaryServerInfo{
×
1046
                Server:     srv,
×
1047
                FullMethod: "/walletrpc.WalletKit/GetTransaction",
×
1048
        }
×
1049
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1050
                return srv.(WalletKitServer).GetTransaction(ctx, req.(*GetTransactionRequest))
×
1051
        }
×
1052
        return interceptor(ctx, in, info, handler)
×
1053
}
1054

1055
func _WalletKit_ListAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1056
        in := new(ListAccountsRequest)
×
1057
        if err := dec(in); err != nil {
×
1058
                return nil, err
×
1059
        }
×
1060
        if interceptor == nil {
×
1061
                return srv.(WalletKitServer).ListAccounts(ctx, in)
×
1062
        }
×
1063
        info := &grpc.UnaryServerInfo{
×
1064
                Server:     srv,
×
1065
                FullMethod: "/walletrpc.WalletKit/ListAccounts",
×
1066
        }
×
1067
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1068
                return srv.(WalletKitServer).ListAccounts(ctx, req.(*ListAccountsRequest))
×
1069
        }
×
1070
        return interceptor(ctx, in, info, handler)
×
1071
}
1072

1073
func _WalletKit_RequiredReserve_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1074
        in := new(RequiredReserveRequest)
×
1075
        if err := dec(in); err != nil {
×
1076
                return nil, err
×
1077
        }
×
1078
        if interceptor == nil {
×
1079
                return srv.(WalletKitServer).RequiredReserve(ctx, in)
×
1080
        }
×
1081
        info := &grpc.UnaryServerInfo{
×
1082
                Server:     srv,
×
1083
                FullMethod: "/walletrpc.WalletKit/RequiredReserve",
×
1084
        }
×
1085
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1086
                return srv.(WalletKitServer).RequiredReserve(ctx, req.(*RequiredReserveRequest))
×
1087
        }
×
1088
        return interceptor(ctx, in, info, handler)
×
1089
}
1090

1091
func _WalletKit_ListAddresses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1092
        in := new(ListAddressesRequest)
×
1093
        if err := dec(in); err != nil {
×
1094
                return nil, err
×
1095
        }
×
1096
        if interceptor == nil {
×
1097
                return srv.(WalletKitServer).ListAddresses(ctx, in)
×
1098
        }
×
1099
        info := &grpc.UnaryServerInfo{
×
1100
                Server:     srv,
×
1101
                FullMethod: "/walletrpc.WalletKit/ListAddresses",
×
1102
        }
×
1103
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1104
                return srv.(WalletKitServer).ListAddresses(ctx, req.(*ListAddressesRequest))
×
1105
        }
×
1106
        return interceptor(ctx, in, info, handler)
×
1107
}
1108

1109
func _WalletKit_SignMessageWithAddr_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1110
        in := new(SignMessageWithAddrRequest)
×
1111
        if err := dec(in); err != nil {
×
1112
                return nil, err
×
1113
        }
×
1114
        if interceptor == nil {
×
1115
                return srv.(WalletKitServer).SignMessageWithAddr(ctx, in)
×
1116
        }
×
1117
        info := &grpc.UnaryServerInfo{
×
1118
                Server:     srv,
×
1119
                FullMethod: "/walletrpc.WalletKit/SignMessageWithAddr",
×
1120
        }
×
1121
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1122
                return srv.(WalletKitServer).SignMessageWithAddr(ctx, req.(*SignMessageWithAddrRequest))
×
1123
        }
×
1124
        return interceptor(ctx, in, info, handler)
×
1125
}
1126

1127
func _WalletKit_VerifyMessageWithAddr_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1128
        in := new(VerifyMessageWithAddrRequest)
×
1129
        if err := dec(in); err != nil {
×
1130
                return nil, err
×
1131
        }
×
1132
        if interceptor == nil {
×
1133
                return srv.(WalletKitServer).VerifyMessageWithAddr(ctx, in)
×
1134
        }
×
1135
        info := &grpc.UnaryServerInfo{
×
1136
                Server:     srv,
×
1137
                FullMethod: "/walletrpc.WalletKit/VerifyMessageWithAddr",
×
1138
        }
×
1139
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1140
                return srv.(WalletKitServer).VerifyMessageWithAddr(ctx, req.(*VerifyMessageWithAddrRequest))
×
1141
        }
×
1142
        return interceptor(ctx, in, info, handler)
×
1143
}
1144

1145
func _WalletKit_ImportAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1146
        in := new(ImportAccountRequest)
×
1147
        if err := dec(in); err != nil {
×
1148
                return nil, err
×
1149
        }
×
1150
        if interceptor == nil {
×
1151
                return srv.(WalletKitServer).ImportAccount(ctx, in)
×
1152
        }
×
1153
        info := &grpc.UnaryServerInfo{
×
1154
                Server:     srv,
×
1155
                FullMethod: "/walletrpc.WalletKit/ImportAccount",
×
1156
        }
×
1157
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1158
                return srv.(WalletKitServer).ImportAccount(ctx, req.(*ImportAccountRequest))
×
1159
        }
×
1160
        return interceptor(ctx, in, info, handler)
×
1161
}
1162

1163
func _WalletKit_ImportPublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1164
        in := new(ImportPublicKeyRequest)
×
1165
        if err := dec(in); err != nil {
×
1166
                return nil, err
×
1167
        }
×
1168
        if interceptor == nil {
×
1169
                return srv.(WalletKitServer).ImportPublicKey(ctx, in)
×
1170
        }
×
1171
        info := &grpc.UnaryServerInfo{
×
1172
                Server:     srv,
×
1173
                FullMethod: "/walletrpc.WalletKit/ImportPublicKey",
×
1174
        }
×
1175
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1176
                return srv.(WalletKitServer).ImportPublicKey(ctx, req.(*ImportPublicKeyRequest))
×
1177
        }
×
1178
        return interceptor(ctx, in, info, handler)
×
1179
}
1180

1181
func _WalletKit_ImportTapscript_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1182
        in := new(ImportTapscriptRequest)
×
1183
        if err := dec(in); err != nil {
×
1184
                return nil, err
×
1185
        }
×
1186
        if interceptor == nil {
×
1187
                return srv.(WalletKitServer).ImportTapscript(ctx, in)
×
1188
        }
×
1189
        info := &grpc.UnaryServerInfo{
×
1190
                Server:     srv,
×
1191
                FullMethod: "/walletrpc.WalletKit/ImportTapscript",
×
1192
        }
×
1193
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1194
                return srv.(WalletKitServer).ImportTapscript(ctx, req.(*ImportTapscriptRequest))
×
1195
        }
×
1196
        return interceptor(ctx, in, info, handler)
×
1197
}
1198

1199
func _WalletKit_PublishTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1200
        in := new(Transaction)
×
1201
        if err := dec(in); err != nil {
×
1202
                return nil, err
×
1203
        }
×
1204
        if interceptor == nil {
×
1205
                return srv.(WalletKitServer).PublishTransaction(ctx, in)
×
1206
        }
×
1207
        info := &grpc.UnaryServerInfo{
×
1208
                Server:     srv,
×
1209
                FullMethod: "/walletrpc.WalletKit/PublishTransaction",
×
1210
        }
×
1211
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1212
                return srv.(WalletKitServer).PublishTransaction(ctx, req.(*Transaction))
×
1213
        }
×
1214
        return interceptor(ctx, in, info, handler)
×
1215
}
1216

1217
func _WalletKit_RemoveTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1218
        in := new(GetTransactionRequest)
×
1219
        if err := dec(in); err != nil {
×
1220
                return nil, err
×
1221
        }
×
1222
        if interceptor == nil {
×
1223
                return srv.(WalletKitServer).RemoveTransaction(ctx, in)
×
1224
        }
×
1225
        info := &grpc.UnaryServerInfo{
×
1226
                Server:     srv,
×
1227
                FullMethod: "/walletrpc.WalletKit/RemoveTransaction",
×
1228
        }
×
1229
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1230
                return srv.(WalletKitServer).RemoveTransaction(ctx, req.(*GetTransactionRequest))
×
1231
        }
×
1232
        return interceptor(ctx, in, info, handler)
×
1233
}
1234

1235
func _WalletKit_SendOutputs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1236
        in := new(SendOutputsRequest)
×
1237
        if err := dec(in); err != nil {
×
1238
                return nil, err
×
1239
        }
×
1240
        if interceptor == nil {
×
1241
                return srv.(WalletKitServer).SendOutputs(ctx, in)
×
1242
        }
×
1243
        info := &grpc.UnaryServerInfo{
×
1244
                Server:     srv,
×
1245
                FullMethod: "/walletrpc.WalletKit/SendOutputs",
×
1246
        }
×
1247
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1248
                return srv.(WalletKitServer).SendOutputs(ctx, req.(*SendOutputsRequest))
×
1249
        }
×
1250
        return interceptor(ctx, in, info, handler)
×
1251
}
1252

1253
func _WalletKit_EstimateFee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1254
        in := new(EstimateFeeRequest)
×
1255
        if err := dec(in); err != nil {
×
1256
                return nil, err
×
1257
        }
×
1258
        if interceptor == nil {
×
1259
                return srv.(WalletKitServer).EstimateFee(ctx, in)
×
1260
        }
×
1261
        info := &grpc.UnaryServerInfo{
×
1262
                Server:     srv,
×
1263
                FullMethod: "/walletrpc.WalletKit/EstimateFee",
×
1264
        }
×
1265
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1266
                return srv.(WalletKitServer).EstimateFee(ctx, req.(*EstimateFeeRequest))
×
1267
        }
×
1268
        return interceptor(ctx, in, info, handler)
×
1269
}
1270

1271
func _WalletKit_PendingSweeps_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1272
        in := new(PendingSweepsRequest)
×
1273
        if err := dec(in); err != nil {
×
1274
                return nil, err
×
1275
        }
×
1276
        if interceptor == nil {
×
1277
                return srv.(WalletKitServer).PendingSweeps(ctx, in)
×
1278
        }
×
1279
        info := &grpc.UnaryServerInfo{
×
1280
                Server:     srv,
×
1281
                FullMethod: "/walletrpc.WalletKit/PendingSweeps",
×
1282
        }
×
1283
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1284
                return srv.(WalletKitServer).PendingSweeps(ctx, req.(*PendingSweepsRequest))
×
1285
        }
×
1286
        return interceptor(ctx, in, info, handler)
×
1287
}
1288

1289
func _WalletKit_BumpFee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1290
        in := new(BumpFeeRequest)
×
1291
        if err := dec(in); err != nil {
×
1292
                return nil, err
×
1293
        }
×
1294
        if interceptor == nil {
×
1295
                return srv.(WalletKitServer).BumpFee(ctx, in)
×
1296
        }
×
1297
        info := &grpc.UnaryServerInfo{
×
1298
                Server:     srv,
×
1299
                FullMethod: "/walletrpc.WalletKit/BumpFee",
×
1300
        }
×
1301
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1302
                return srv.(WalletKitServer).BumpFee(ctx, req.(*BumpFeeRequest))
×
1303
        }
×
1304
        return interceptor(ctx, in, info, handler)
×
1305
}
1306

1307
func _WalletKit_BumpForceCloseFee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1308
        in := new(BumpForceCloseFeeRequest)
×
1309
        if err := dec(in); err != nil {
×
1310
                return nil, err
×
1311
        }
×
1312
        if interceptor == nil {
×
1313
                return srv.(WalletKitServer).BumpForceCloseFee(ctx, in)
×
1314
        }
×
1315
        info := &grpc.UnaryServerInfo{
×
1316
                Server:     srv,
×
1317
                FullMethod: "/walletrpc.WalletKit/BumpForceCloseFee",
×
1318
        }
×
1319
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1320
                return srv.(WalletKitServer).BumpForceCloseFee(ctx, req.(*BumpForceCloseFeeRequest))
×
1321
        }
×
1322
        return interceptor(ctx, in, info, handler)
×
1323
}
1324

1325
func _WalletKit_ListSweeps_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1326
        in := new(ListSweepsRequest)
×
1327
        if err := dec(in); err != nil {
×
1328
                return nil, err
×
1329
        }
×
1330
        if interceptor == nil {
×
1331
                return srv.(WalletKitServer).ListSweeps(ctx, in)
×
1332
        }
×
1333
        info := &grpc.UnaryServerInfo{
×
1334
                Server:     srv,
×
1335
                FullMethod: "/walletrpc.WalletKit/ListSweeps",
×
1336
        }
×
1337
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1338
                return srv.(WalletKitServer).ListSweeps(ctx, req.(*ListSweepsRequest))
×
1339
        }
×
1340
        return interceptor(ctx, in, info, handler)
×
1341
}
1342

1343
func _WalletKit_LabelTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1344
        in := new(LabelTransactionRequest)
×
1345
        if err := dec(in); err != nil {
×
1346
                return nil, err
×
1347
        }
×
1348
        if interceptor == nil {
×
1349
                return srv.(WalletKitServer).LabelTransaction(ctx, in)
×
1350
        }
×
1351
        info := &grpc.UnaryServerInfo{
×
1352
                Server:     srv,
×
1353
                FullMethod: "/walletrpc.WalletKit/LabelTransaction",
×
1354
        }
×
1355
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1356
                return srv.(WalletKitServer).LabelTransaction(ctx, req.(*LabelTransactionRequest))
×
1357
        }
×
1358
        return interceptor(ctx, in, info, handler)
×
1359
}
1360

1361
func _WalletKit_FundPsbt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1362
        in := new(FundPsbtRequest)
×
1363
        if err := dec(in); err != nil {
×
1364
                return nil, err
×
1365
        }
×
1366
        if interceptor == nil {
×
1367
                return srv.(WalletKitServer).FundPsbt(ctx, in)
×
1368
        }
×
1369
        info := &grpc.UnaryServerInfo{
×
1370
                Server:     srv,
×
1371
                FullMethod: "/walletrpc.WalletKit/FundPsbt",
×
1372
        }
×
1373
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1374
                return srv.(WalletKitServer).FundPsbt(ctx, req.(*FundPsbtRequest))
×
1375
        }
×
1376
        return interceptor(ctx, in, info, handler)
×
1377
}
1378

1379
func _WalletKit_SignPsbt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1380
        in := new(SignPsbtRequest)
×
1381
        if err := dec(in); err != nil {
×
1382
                return nil, err
×
1383
        }
×
1384
        if interceptor == nil {
×
1385
                return srv.(WalletKitServer).SignPsbt(ctx, in)
×
1386
        }
×
1387
        info := &grpc.UnaryServerInfo{
×
1388
                Server:     srv,
×
1389
                FullMethod: "/walletrpc.WalletKit/SignPsbt",
×
1390
        }
×
1391
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1392
                return srv.(WalletKitServer).SignPsbt(ctx, req.(*SignPsbtRequest))
×
1393
        }
×
1394
        return interceptor(ctx, in, info, handler)
×
1395
}
1396

1397
func _WalletKit_FinalizePsbt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
1398
        in := new(FinalizePsbtRequest)
×
1399
        if err := dec(in); err != nil {
×
1400
                return nil, err
×
1401
        }
×
1402
        if interceptor == nil {
×
1403
                return srv.(WalletKitServer).FinalizePsbt(ctx, in)
×
1404
        }
×
1405
        info := &grpc.UnaryServerInfo{
×
1406
                Server:     srv,
×
1407
                FullMethod: "/walletrpc.WalletKit/FinalizePsbt",
×
1408
        }
×
1409
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
1410
                return srv.(WalletKitServer).FinalizePsbt(ctx, req.(*FinalizePsbtRequest))
×
1411
        }
×
1412
        return interceptor(ctx, in, info, handler)
×
1413
}
1414

1415
// WalletKit_ServiceDesc is the grpc.ServiceDesc for WalletKit service.
1416
// It's only intended for direct use with grpc.RegisterService,
1417
// and not to be introspected or modified (even as a copy)
1418
var WalletKit_ServiceDesc = grpc.ServiceDesc{
1419
        ServiceName: "walletrpc.WalletKit",
1420
        HandlerType: (*WalletKitServer)(nil),
1421
        Methods: []grpc.MethodDesc{
1422
                {
1423
                        MethodName: "ListUnspent",
1424
                        Handler:    _WalletKit_ListUnspent_Handler,
1425
                },
1426
                {
1427
                        MethodName: "LeaseOutput",
1428
                        Handler:    _WalletKit_LeaseOutput_Handler,
1429
                },
1430
                {
1431
                        MethodName: "ReleaseOutput",
1432
                        Handler:    _WalletKit_ReleaseOutput_Handler,
1433
                },
1434
                {
1435
                        MethodName: "ListLeases",
1436
                        Handler:    _WalletKit_ListLeases_Handler,
1437
                },
1438
                {
1439
                        MethodName: "DeriveNextKey",
1440
                        Handler:    _WalletKit_DeriveNextKey_Handler,
1441
                },
1442
                {
1443
                        MethodName: "DeriveKey",
1444
                        Handler:    _WalletKit_DeriveKey_Handler,
1445
                },
1446
                {
1447
                        MethodName: "NextAddr",
1448
                        Handler:    _WalletKit_NextAddr_Handler,
1449
                },
1450
                {
1451
                        MethodName: "GetTransaction",
1452
                        Handler:    _WalletKit_GetTransaction_Handler,
1453
                },
1454
                {
1455
                        MethodName: "ListAccounts",
1456
                        Handler:    _WalletKit_ListAccounts_Handler,
1457
                },
1458
                {
1459
                        MethodName: "RequiredReserve",
1460
                        Handler:    _WalletKit_RequiredReserve_Handler,
1461
                },
1462
                {
1463
                        MethodName: "ListAddresses",
1464
                        Handler:    _WalletKit_ListAddresses_Handler,
1465
                },
1466
                {
1467
                        MethodName: "SignMessageWithAddr",
1468
                        Handler:    _WalletKit_SignMessageWithAddr_Handler,
1469
                },
1470
                {
1471
                        MethodName: "VerifyMessageWithAddr",
1472
                        Handler:    _WalletKit_VerifyMessageWithAddr_Handler,
1473
                },
1474
                {
1475
                        MethodName: "ImportAccount",
1476
                        Handler:    _WalletKit_ImportAccount_Handler,
1477
                },
1478
                {
1479
                        MethodName: "ImportPublicKey",
1480
                        Handler:    _WalletKit_ImportPublicKey_Handler,
1481
                },
1482
                {
1483
                        MethodName: "ImportTapscript",
1484
                        Handler:    _WalletKit_ImportTapscript_Handler,
1485
                },
1486
                {
1487
                        MethodName: "PublishTransaction",
1488
                        Handler:    _WalletKit_PublishTransaction_Handler,
1489
                },
1490
                {
1491
                        MethodName: "RemoveTransaction",
1492
                        Handler:    _WalletKit_RemoveTransaction_Handler,
1493
                },
1494
                {
1495
                        MethodName: "SendOutputs",
1496
                        Handler:    _WalletKit_SendOutputs_Handler,
1497
                },
1498
                {
1499
                        MethodName: "EstimateFee",
1500
                        Handler:    _WalletKit_EstimateFee_Handler,
1501
                },
1502
                {
1503
                        MethodName: "PendingSweeps",
1504
                        Handler:    _WalletKit_PendingSweeps_Handler,
1505
                },
1506
                {
1507
                        MethodName: "BumpFee",
1508
                        Handler:    _WalletKit_BumpFee_Handler,
1509
                },
1510
                {
1511
                        MethodName: "BumpForceCloseFee",
1512
                        Handler:    _WalletKit_BumpForceCloseFee_Handler,
1513
                },
1514
                {
1515
                        MethodName: "ListSweeps",
1516
                        Handler:    _WalletKit_ListSweeps_Handler,
1517
                },
1518
                {
1519
                        MethodName: "LabelTransaction",
1520
                        Handler:    _WalletKit_LabelTransaction_Handler,
1521
                },
1522
                {
1523
                        MethodName: "FundPsbt",
1524
                        Handler:    _WalletKit_FundPsbt_Handler,
1525
                },
1526
                {
1527
                        MethodName: "SignPsbt",
1528
                        Handler:    _WalletKit_SignPsbt_Handler,
1529
                },
1530
                {
1531
                        MethodName: "FinalizePsbt",
1532
                        Handler:    _WalletKit_FinalizePsbt_Handler,
1533
                },
1534
        },
1535
        Streams:  []grpc.StreamDesc{},
1536
        Metadata: "walletrpc/walletkit.proto",
1537
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc