2021-07-27 12:59:59 +02:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
package walletrpc
import (
context "context"
2023-01-18 13:29:09 +08:00
lnrpc "github.com/lightningnetwork/lnd/lnrpc"
2021-07-27 12:59:59 +02:00
signrpc "github.com/lightningnetwork/lnd/lnrpc/signrpc"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc . SupportPackageIsVersion7
// WalletKitClient is the client API for WalletKit service.
//
// 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.
type WalletKitClient interface {
2022-08-24 11:42:34 -05:00
// ListUnspent returns a list of all utxos spendable by the wallet with a
// number of confirmations between the specified minimum and maximum. By
// default, all utxos are listed. To list only the unconfirmed utxos, set
// the unconfirmed_only to true.
2021-07-27 12:59:59 +02:00
ListUnspent ( ctx context . Context , in * ListUnspentRequest , opts ... grpc . CallOption ) ( * ListUnspentResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet leaseoutput`
2022-08-24 11:42:34 -05:00
// LeaseOutput locks an output to the given ID, preventing it from being
// available for any future coin selection attempts. The absolute time of the
// lock's expiration is returned. The expiration of the lock can be extended by
// successive invocations of this RPC. Outputs can be unlocked before their
// expiration through `ReleaseOutput`.
2021-07-27 12:59:59 +02:00
LeaseOutput ( ctx context . Context , in * LeaseOutputRequest , opts ... grpc . CallOption ) ( * LeaseOutputResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet releaseoutput`
2022-08-24 11:42:34 -05:00
// ReleaseOutput unlocks an output, allowing it to be available for coin
// selection if it remains unspent. The ID should match the one used to
// originally lock the output.
2021-07-27 12:59:59 +02:00
ReleaseOutput ( ctx context . Context , in * ReleaseOutputRequest , opts ... grpc . CallOption ) ( * ReleaseOutputResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet listleases`
2022-08-24 11:42:34 -05:00
// ListLeases lists all currently locked utxos.
2021-07-27 12:59:59 +02:00
ListLeases ( ctx context . Context , in * ListLeasesRequest , opts ... grpc . CallOption ) ( * ListLeasesResponse , error )
2022-08-24 11:42:34 -05:00
// DeriveNextKey attempts to derive the *next* key within the key family
// (account in BIP43) specified. This method should return the next external
// child within this branch.
2021-07-27 12:59:59 +02:00
DeriveNextKey ( ctx context . Context , in * KeyReq , opts ... grpc . CallOption ) ( * signrpc . KeyDescriptor , error )
2022-08-24 11:42:34 -05:00
// DeriveKey attempts to derive an arbitrary key specified by the passed
// KeyLocator.
2021-07-27 12:59:59 +02:00
DeriveKey ( ctx context . Context , in * signrpc . KeyLocator , opts ... grpc . CallOption ) ( * signrpc . KeyDescriptor , error )
2022-08-24 11:42:34 -05:00
// NextAddr returns the next unused address within the wallet.
2021-07-27 12:59:59 +02:00
NextAddr ( ctx context . Context , in * AddrRequest , opts ... grpc . CallOption ) ( * AddrResponse , error )
2023-01-18 13:29:09 +08:00
// lncli: `wallet gettx`
// GetTransaction returns details for a transaction found in the wallet.
GetTransaction ( ctx context . Context , in * GetTransactionRequest , opts ... grpc . CallOption ) ( * lnrpc . Transaction , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet accounts list`
2022-08-24 11:42:34 -05:00
// ListAccounts retrieves all accounts belonging to the wallet by default. A
// name and key scope filter can be provided to filter through all of the
// wallet accounts and return only those matching.
2021-07-27 12:59:59 +02:00
ListAccounts ( ctx context . Context , in * ListAccountsRequest , opts ... grpc . CallOption ) ( * ListAccountsResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet requiredreserve`
2022-08-24 11:42:34 -05:00
// RequiredReserve returns the minimum amount of satoshis that should be kept
// in the wallet in order to fee bump anchor channels if necessary. The value
// scales with the number of public anchor channels but is capped at a maximum.
2022-06-20 18:43:29 +05:30
RequiredReserve ( ctx context . Context , in * RequiredReserveRequest , opts ... grpc . CallOption ) ( * RequiredReserveResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet addresses list`
2022-08-24 11:42:34 -05:00
// ListAddresses retrieves all the addresses along with their balance. An
// account name filter can be provided to filter through all of the
// wallet accounts and return the addresses of only those matching.
2022-07-23 11:06:23 +05:30
ListAddresses ( ctx context . Context , in * ListAddressesRequest , opts ... grpc . CallOption ) ( * ListAddressesResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet addresses signmessage`
2022-12-03 16:19:10 +01:00
// SignMessageWithAddr returns the compact signature (base64 encoded) created
// with the private key of the provided address. This requires the address
// to be solely based on a public key lock (no scripts). Obviously the internal
// lnd wallet has to possess the private key of the address otherwise
// an error is returned.
//
// This method aims to provide full compatibility with the bitcoin-core and
// btcd implementation. Bitcoin-core's algorithm is not specified in a
// BIP and only applicable for legacy addresses. This method enhances the
// signing for additional address types: P2WKH, NP2WKH, P2TR.
// For P2TR addresses this represents a special case. ECDSA is used to create
// a compact signature which makes the public key of the signature recoverable.
SignMessageWithAddr ( ctx context . Context , in * SignMessageWithAddrRequest , opts ... grpc . CallOption ) ( * SignMessageWithAddrResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet addresses verifymessage`
2022-12-03 16:19:10 +01:00
// VerifyMessageWithAddr returns the validity and the recovered public key of
// the provided compact signature (base64 encoded). The verification is
// twofold. First the validity of the signature itself is checked and then
// it is verified that the recovered public key of the signature equals
// the public key of the provided address. There is no dependence on the
// private key of the address therefore also external addresses are allowed
// to verify signatures.
// Supported address types are P2PKH, P2WKH, NP2WKH, P2TR.
//
// This method is the counterpart of the related signing method
// (SignMessageWithAddr) and aims to provide full compatibility to
// bitcoin-core's implementation. Although bitcoin-core/btcd only provide
// this functionality for legacy addresses this function enhances it to
// the address types: P2PKH, P2WKH, NP2WKH, P2TR.
//
// The verification for P2TR addresses is a special case and requires the
// ECDSA compact signature to compare the reovered public key to the internal
// taproot key. The compact ECDSA signature format was used because there
// are still no known compact signature schemes for schnorr signatures.
VerifyMessageWithAddr ( ctx context . Context , in * VerifyMessageWithAddrRequest , opts ... grpc . CallOption ) ( * VerifyMessageWithAddrResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet accounts import`
2022-08-24 11:42:34 -05:00
// ImportAccount imports an account backed by an account extended public key.
// The master key fingerprint denotes the fingerprint of the root key
// corresponding to the account public key (also known as the key with
// derivation path m/). This may be required by some hardware wallets for
// proper identification and signing.
//
// The address type can usually be inferred from the key's version, but may be
// required for certain keys to map them into the proper scope.
//
// For BIP-0044 keys, an address type must be specified as we intend to not
// support importing BIP-0044 keys into the wallet using the legacy
// pay-to-pubkey-hash (P2PKH) scheme. A nested witness address type will force
// the standard BIP-0049 derivation scheme, while a witness address type will
// force the standard BIP-0084 derivation scheme.
//
// For BIP-0049 keys, an address type must also be specified to make a
// distinction between the standard BIP-0049 address schema (nested witness
// pubkeys everywhere) and our own BIP-0049Plus address schema (nested pubkeys
// externally, witness pubkeys internally).
//
// NOTE: Events (deposits/spends) for keys derived from an account will only be
// detected by lnd if they happen after the import. Rescans to detect past
// events will be supported later on.
2021-07-27 12:59:59 +02:00
ImportAccount ( ctx context . Context , in * ImportAccountRequest , opts ... grpc . CallOption ) ( * ImportAccountResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet accounts import-pubkey`
2022-07-29 18:20:09 +02:00
// ImportPublicKey imports a public key as watch-only into the wallet. The
// public key is converted into a simple address of the given type and that
// address script is watched on chain. For Taproot keys, this will only watch
// the BIP-0086 style output script. Use ImportTapscript for more advanced key
// spend or script spend outputs.
2021-07-27 12:59:59 +02:00
//
2022-08-24 11:42:34 -05:00
// NOTE: Events (deposits/spends) for a key will only be detected by lnd if
// they happen after the import. Rescans to detect past events will be
// supported later on.
2021-07-27 12:59:59 +02:00
ImportPublicKey ( ctx context . Context , in * ImportPublicKeyRequest , opts ... grpc . CallOption ) ( * ImportPublicKeyResponse , error )
2022-07-29 18:20:09 +02:00
// ImportTapscript imports a Taproot script and internal key and adds the
// resulting Taproot output key as a watch-only output script into the wallet.
// For BIP-0086 style Taproot keys (no root hash commitment and no script spend
// path) use ImportPublicKey.
//
// NOTE: Events (deposits/spends) for a key will only be detected by lnd if
// they happen after the import. Rescans to detect past events will be
// supported later on.
//
// NOTE: Taproot keys imported through this RPC currently _cannot_ be used for
// funding PSBTs. Only tracking the balance and UTXOs is currently supported.
ImportTapscript ( ctx context . Context , in * ImportTapscriptRequest , opts ... grpc . CallOption ) ( * ImportTapscriptResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet publishtx`
2022-08-24 11:42:34 -05:00
// PublishTransaction attempts to publish the passed transaction to the
// network. Once this returns without an error, the wallet will continually
// attempt to re-broadcast the transaction on start up, until it enters the
// chain.
2021-07-27 12:59:59 +02:00
PublishTransaction ( ctx context . Context , in * Transaction , opts ... grpc . CallOption ) ( * PublishResponse , error )
2023-11-07 13:00:59 +01:00
// lncli: `wallet removetx`
// RemoveTransaction attempts to remove the provided transaction from the
// internal transaction store of the wallet.
RemoveTransaction ( ctx context . Context , in * GetTransactionRequest , opts ... grpc . CallOption ) ( * RemoveTransactionResponse , error )
2022-08-24 11:42:34 -05:00
// SendOutputs is similar to the existing sendmany call in Bitcoind, and
// allows the caller to create a transaction that sends to several outputs at
// once. This is ideal when wanting to batch create a set of transactions.
2021-07-27 12:59:59 +02:00
SendOutputs ( ctx context . Context , in * SendOutputsRequest , opts ... grpc . CallOption ) ( * SendOutputsResponse , error )
2022-08-24 11:42:34 -05:00
// EstimateFee attempts to query the internal fee estimator of the wallet to
// determine the fee (in sat/kw) to attach to a transaction in order to
// achieve the confirmation target.
2021-07-27 12:59:59 +02:00
EstimateFee ( ctx context . Context , in * EstimateFeeRequest , opts ... grpc . CallOption ) ( * EstimateFeeResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `pendingsweeps`
2022-08-24 11:42:34 -05:00
// PendingSweeps returns lists of on-chain outputs that lnd is currently
// attempting to sweep within its central batching engine. Outputs with similar
// fee rates are batched together in order to sweep them within a single
// transaction.
//
// NOTE: Some of the fields within PendingSweepsRequest are not guaranteed to
// remain supported. This is an advanced API that depends on the internals of
// the UtxoSweeper, so things may change.
2021-07-27 12:59:59 +02:00
PendingSweeps ( ctx context . Context , in * PendingSweepsRequest , opts ... grpc . CallOption ) ( * PendingSweepsResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet bumpfee`
2022-08-24 11:42:34 -05:00
// BumpFee bumps the fee of an arbitrary input within a transaction. This RPC
// takes a different approach than bitcoind's bumpfee command. lnd has a
// central batching engine in which inputs with similar fee rates are batched
// together to save on transaction fees. Due to this, we cannot rely on
// bumping the fee on a specific transaction, since transactions can change at
// any point with the addition of new inputs. The list of inputs that
// currently exist within lnd's central batching engine can be retrieved
// through the PendingSweeps RPC.
//
// When bumping the fee of an input that currently exists within lnd's central
// batching engine, a higher fee transaction will be created that replaces the
// lower fee transaction through the Replace-By-Fee (RBF) policy. If it
//
// This RPC also serves useful when wanting to perform a Child-Pays-For-Parent
// (CPFP), where the child transaction pays for its parent's fee. This can be
// done by specifying an outpoint within the low fee transaction that is under
// the control of the wallet.
//
// The fee preference can be expressed either as a specific fee rate or a delta
// of blocks in which the output should be swept on-chain within. If a fee
// preference is not explicitly specified, then an error is returned.
//
// Note that this RPC currently doesn't perform any validation checks on the
// fee preference being provided. For now, the responsibility of ensuring that
// the new fee preference is sufficient is delegated to the user.
2021-07-27 12:59:59 +02:00
BumpFee ( ctx context . Context , in * BumpFeeRequest , opts ... grpc . CallOption ) ( * BumpFeeResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet listsweeps`
2022-08-24 11:42:34 -05:00
// ListSweeps returns a list of the sweep transactions our node has produced.
// Note that these sweeps may not be confirmed yet, as we record sweeps on
// broadcast, not confirmation.
2021-07-27 12:59:59 +02:00
ListSweeps ( ctx context . Context , in * ListSweepsRequest , opts ... grpc . CallOption ) ( * ListSweepsResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet labeltx`
2022-08-24 11:42:34 -05:00
// LabelTransaction adds a label to a transaction. If the transaction already
// has a label the call will fail unless the overwrite bool is set. This will
// overwrite the exiting transaction label. Labels must not be empty, and
// cannot exceed 500 characters.
2021-07-27 12:59:59 +02:00
LabelTransaction ( ctx context . Context , in * LabelTransactionRequest , opts ... grpc . CallOption ) ( * LabelTransactionResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet psbt fund`
2022-08-24 11:42:34 -05:00
// FundPsbt creates a fully populated PSBT that contains enough inputs to fund
2024-02-06 12:25:57 +01:00
// the outputs specified in the template. There are three ways a user can
// specify what we call the template (a list of inputs and outputs to use in
// the PSBT): Either as a PSBT packet directly with no coin selection (using
// the legacy "psbt" field), a PSBT with advanced coin selection support (using
// the new "coin_select" field) or as a raw RPC message (using the "raw"
// field).
// The legacy "psbt" and "raw" modes, the following restrictions apply:
// 1. If there are no inputs specified in the template, coin selection is
// performed automatically.
// 2. If the template does contain any inputs, it is assumed that full
// coin selection happened externally and no additional inputs are added. If
// the specified inputs aren't enough to fund the outputs with the given fee
// rate, an error is returned.
//
// The new "coin_select" mode does not have these restrictions and allows the
// user to specify a PSBT with inputs and outputs and still perform coin
// selection on top of that.
// For all modes this RPC requires any inputs that are specified to be locked
// by the user (if they belong to this node in the first place).
2022-08-24 11:42:34 -05:00
//
// After either selecting or verifying the inputs, all input UTXOs are locked
// with an internal app ID.
//
// NOTE: If this method returns without an error, it is the caller's
// responsibility to either spend the locked UTXOs (by finalizing and then
// publishing the transaction) or to unlock/release the locked UTXOs in case of
// an error on the caller's side.
2021-07-27 12:59:59 +02:00
FundPsbt ( ctx context . Context , in * FundPsbtRequest , opts ... grpc . CallOption ) ( * FundPsbtResponse , error )
2022-08-24 11:42:34 -05:00
// SignPsbt expects a partial transaction with all inputs and outputs fully
// declared and tries to sign all unsigned inputs that have all required fields
// (UTXO information, BIP32 derivation information, witness or sig scripts)
// set.
// If no error is returned, the PSBT is ready to be given to the next signer or
// to be finalized if lnd was the last signer.
//
// NOTE: This RPC only signs inputs (and only those it can sign), it does not
// perform any other tasks (such as coin selection, UTXO locking or
// input/output/fee value validation, PSBT finalization). Any input that is
// incomplete will be skipped.
2022-01-05 11:04:24 +01:00
SignPsbt ( ctx context . Context , in * SignPsbtRequest , opts ... grpc . CallOption ) ( * SignPsbtResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet psbt finalize`
2022-08-24 11:42:34 -05:00
// FinalizePsbt expects a partial transaction with all inputs and outputs fully
// declared and tries to sign all inputs that belong to the wallet. Lnd must be
// the last signer of the transaction. That means, if there are any unsigned
// non-witness inputs or inputs without UTXO information attached or inputs
// without witness data that do not belong to lnd's wallet, this method will
// fail. If no error is returned, the PSBT is ready to be extracted and the
// final TX within to be broadcast.
//
// NOTE: This method does NOT publish the transaction once finalized. It is the
// caller's responsibility to either publish the transaction on success or
// unlock/release any locked UTXOs in case of an error in this method.
2021-07-27 12:59:59 +02:00
FinalizePsbt ( ctx context . Context , in * FinalizePsbtRequest , opts ... grpc . CallOption ) ( * FinalizePsbtResponse , error )
}
type walletKitClient struct {
cc grpc . ClientConnInterface
}
func NewWalletKitClient ( cc grpc . ClientConnInterface ) WalletKitClient {
return & walletKitClient { cc }
}
func ( c * walletKitClient ) ListUnspent ( ctx context . Context , in * ListUnspentRequest , opts ... grpc . CallOption ) ( * ListUnspentResponse , error ) {
out := new ( ListUnspentResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/ListUnspent" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * walletKitClient ) LeaseOutput ( ctx context . Context , in * LeaseOutputRequest , opts ... grpc . CallOption ) ( * LeaseOutputResponse , error ) {
out := new ( LeaseOutputResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/LeaseOutput" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * walletKitClient ) ReleaseOutput ( ctx context . Context , in * ReleaseOutputRequest , opts ... grpc . CallOption ) ( * ReleaseOutputResponse , error ) {
out := new ( ReleaseOutputResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/ReleaseOutput" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * walletKitClient ) ListLeases ( ctx context . Context , in * ListLeasesRequest , opts ... grpc . CallOption ) ( * ListLeasesResponse , error ) {
out := new ( ListLeasesResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/ListLeases" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * walletKitClient ) DeriveNextKey ( ctx context . Context , in * KeyReq , opts ... grpc . CallOption ) ( * signrpc . KeyDescriptor , error ) {
out := new ( signrpc . KeyDescriptor )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/DeriveNextKey" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * walletKitClient ) DeriveKey ( ctx context . Context , in * signrpc . KeyLocator , opts ... grpc . CallOption ) ( * signrpc . KeyDescriptor , error ) {
out := new ( signrpc . KeyDescriptor )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/DeriveKey" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * walletKitClient ) NextAddr ( ctx context . Context , in * AddrRequest , opts ... grpc . CallOption ) ( * AddrResponse , error ) {
out := new ( AddrResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/NextAddr" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2023-01-18 13:29:09 +08:00
func ( c * walletKitClient ) GetTransaction ( ctx context . Context , in * GetTransactionRequest , opts ... grpc . CallOption ) ( * lnrpc . Transaction , error ) {
out := new ( lnrpc . Transaction )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/GetTransaction" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2021-07-27 12:59:59 +02:00
func ( c * walletKitClient ) ListAccounts ( ctx context . Context , in * ListAccountsRequest , opts ... grpc . CallOption ) ( * ListAccountsResponse , error ) {
out := new ( ListAccountsResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/ListAccounts" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2022-06-20 18:43:29 +05:30
func ( c * walletKitClient ) RequiredReserve ( ctx context . Context , in * RequiredReserveRequest , opts ... grpc . CallOption ) ( * RequiredReserveResponse , error ) {
out := new ( RequiredReserveResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/RequiredReserve" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2022-07-23 11:06:23 +05:30
func ( c * walletKitClient ) ListAddresses ( ctx context . Context , in * ListAddressesRequest , opts ... grpc . CallOption ) ( * ListAddressesResponse , error ) {
out := new ( ListAddressesResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/ListAddresses" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2022-12-03 16:19:10 +01:00
func ( c * walletKitClient ) SignMessageWithAddr ( ctx context . Context , in * SignMessageWithAddrRequest , opts ... grpc . CallOption ) ( * SignMessageWithAddrResponse , error ) {
out := new ( SignMessageWithAddrResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/SignMessageWithAddr" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * walletKitClient ) VerifyMessageWithAddr ( ctx context . Context , in * VerifyMessageWithAddrRequest , opts ... grpc . CallOption ) ( * VerifyMessageWithAddrResponse , error ) {
out := new ( VerifyMessageWithAddrResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/VerifyMessageWithAddr" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2021-07-27 12:59:59 +02:00
func ( c * walletKitClient ) ImportAccount ( ctx context . Context , in * ImportAccountRequest , opts ... grpc . CallOption ) ( * ImportAccountResponse , error ) {
out := new ( ImportAccountResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/ImportAccount" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * walletKitClient ) ImportPublicKey ( ctx context . Context , in * ImportPublicKeyRequest , opts ... grpc . CallOption ) ( * ImportPublicKeyResponse , error ) {
out := new ( ImportPublicKeyResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/ImportPublicKey" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2022-07-29 18:20:09 +02:00
func ( c * walletKitClient ) ImportTapscript ( ctx context . Context , in * ImportTapscriptRequest , opts ... grpc . CallOption ) ( * ImportTapscriptResponse , error ) {
out := new ( ImportTapscriptResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/ImportTapscript" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2021-07-27 12:59:59 +02:00
func ( c * walletKitClient ) PublishTransaction ( ctx context . Context , in * Transaction , opts ... grpc . CallOption ) ( * PublishResponse , error ) {
out := new ( PublishResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/PublishTransaction" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2023-11-07 13:00:59 +01:00
func ( c * walletKitClient ) RemoveTransaction ( ctx context . Context , in * GetTransactionRequest , opts ... grpc . CallOption ) ( * RemoveTransactionResponse , error ) {
out := new ( RemoveTransactionResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/RemoveTransaction" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2021-07-27 12:59:59 +02:00
func ( c * walletKitClient ) SendOutputs ( ctx context . Context , in * SendOutputsRequest , opts ... grpc . CallOption ) ( * SendOutputsResponse , error ) {
out := new ( SendOutputsResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/SendOutputs" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * walletKitClient ) EstimateFee ( ctx context . Context , in * EstimateFeeRequest , opts ... grpc . CallOption ) ( * EstimateFeeResponse , error ) {
out := new ( EstimateFeeResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/EstimateFee" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * walletKitClient ) PendingSweeps ( ctx context . Context , in * PendingSweepsRequest , opts ... grpc . CallOption ) ( * PendingSweepsResponse , error ) {
out := new ( PendingSweepsResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/PendingSweeps" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * walletKitClient ) BumpFee ( ctx context . Context , in * BumpFeeRequest , opts ... grpc . CallOption ) ( * BumpFeeResponse , error ) {
out := new ( BumpFeeResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/BumpFee" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * walletKitClient ) ListSweeps ( ctx context . Context , in * ListSweepsRequest , opts ... grpc . CallOption ) ( * ListSweepsResponse , error ) {
out := new ( ListSweepsResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/ListSweeps" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * walletKitClient ) LabelTransaction ( ctx context . Context , in * LabelTransactionRequest , opts ... grpc . CallOption ) ( * LabelTransactionResponse , error ) {
out := new ( LabelTransactionResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/LabelTransaction" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * walletKitClient ) FundPsbt ( ctx context . Context , in * FundPsbtRequest , opts ... grpc . CallOption ) ( * FundPsbtResponse , error ) {
out := new ( FundPsbtResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/FundPsbt" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2022-01-05 11:04:24 +01:00
func ( c * walletKitClient ) SignPsbt ( ctx context . Context , in * SignPsbtRequest , opts ... grpc . CallOption ) ( * SignPsbtResponse , error ) {
out := new ( SignPsbtResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/SignPsbt" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2021-07-27 12:59:59 +02:00
func ( c * walletKitClient ) FinalizePsbt ( ctx context . Context , in * FinalizePsbtRequest , opts ... grpc . CallOption ) ( * FinalizePsbtResponse , error ) {
out := new ( FinalizePsbtResponse )
err := c . cc . Invoke ( ctx , "/walletrpc.WalletKit/FinalizePsbt" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
// WalletKitServer is the server API for WalletKit service.
// All implementations must embed UnimplementedWalletKitServer
// for forward compatibility
type WalletKitServer interface {
2022-08-24 11:42:34 -05:00
// ListUnspent returns a list of all utxos spendable by the wallet with a
// number of confirmations between the specified minimum and maximum. By
// default, all utxos are listed. To list only the unconfirmed utxos, set
// the unconfirmed_only to true.
2021-07-27 12:59:59 +02:00
ListUnspent ( context . Context , * ListUnspentRequest ) ( * ListUnspentResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet leaseoutput`
2022-08-24 11:42:34 -05:00
// LeaseOutput locks an output to the given ID, preventing it from being
// available for any future coin selection attempts. The absolute time of the
// lock's expiration is returned. The expiration of the lock can be extended by
// successive invocations of this RPC. Outputs can be unlocked before their
// expiration through `ReleaseOutput`.
2021-07-27 12:59:59 +02:00
LeaseOutput ( context . Context , * LeaseOutputRequest ) ( * LeaseOutputResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet releaseoutput`
2022-08-24 11:42:34 -05:00
// ReleaseOutput unlocks an output, allowing it to be available for coin
// selection if it remains unspent. The ID should match the one used to
// originally lock the output.
2021-07-27 12:59:59 +02:00
ReleaseOutput ( context . Context , * ReleaseOutputRequest ) ( * ReleaseOutputResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet listleases`
2022-08-24 11:42:34 -05:00
// ListLeases lists all currently locked utxos.
2021-07-27 12:59:59 +02:00
ListLeases ( context . Context , * ListLeasesRequest ) ( * ListLeasesResponse , error )
2022-08-24 11:42:34 -05:00
// DeriveNextKey attempts to derive the *next* key within the key family
// (account in BIP43) specified. This method should return the next external
// child within this branch.
2021-07-27 12:59:59 +02:00
DeriveNextKey ( context . Context , * KeyReq ) ( * signrpc . KeyDescriptor , error )
2022-08-24 11:42:34 -05:00
// DeriveKey attempts to derive an arbitrary key specified by the passed
// KeyLocator.
2021-07-27 12:59:59 +02:00
DeriveKey ( context . Context , * signrpc . KeyLocator ) ( * signrpc . KeyDescriptor , error )
2022-08-24 11:42:34 -05:00
// NextAddr returns the next unused address within the wallet.
2021-07-27 12:59:59 +02:00
NextAddr ( context . Context , * AddrRequest ) ( * AddrResponse , error )
2023-01-18 13:29:09 +08:00
// lncli: `wallet gettx`
// GetTransaction returns details for a transaction found in the wallet.
GetTransaction ( context . Context , * GetTransactionRequest ) ( * lnrpc . Transaction , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet accounts list`
2022-08-24 11:42:34 -05:00
// ListAccounts retrieves all accounts belonging to the wallet by default. A
// name and key scope filter can be provided to filter through all of the
// wallet accounts and return only those matching.
2021-07-27 12:59:59 +02:00
ListAccounts ( context . Context , * ListAccountsRequest ) ( * ListAccountsResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet requiredreserve`
2022-08-24 11:42:34 -05:00
// RequiredReserve returns the minimum amount of satoshis that should be kept
// in the wallet in order to fee bump anchor channels if necessary. The value
// scales with the number of public anchor channels but is capped at a maximum.
2022-06-20 18:43:29 +05:30
RequiredReserve ( context . Context , * RequiredReserveRequest ) ( * RequiredReserveResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet addresses list`
2022-08-24 11:42:34 -05:00
// ListAddresses retrieves all the addresses along with their balance. An
// account name filter can be provided to filter through all of the
// wallet accounts and return the addresses of only those matching.
2022-07-23 11:06:23 +05:30
ListAddresses ( context . Context , * ListAddressesRequest ) ( * ListAddressesResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet addresses signmessage`
2022-12-03 16:19:10 +01:00
// SignMessageWithAddr returns the compact signature (base64 encoded) created
// with the private key of the provided address. This requires the address
// to be solely based on a public key lock (no scripts). Obviously the internal
// lnd wallet has to possess the private key of the address otherwise
// an error is returned.
//
// This method aims to provide full compatibility with the bitcoin-core and
// btcd implementation. Bitcoin-core's algorithm is not specified in a
// BIP and only applicable for legacy addresses. This method enhances the
// signing for additional address types: P2WKH, NP2WKH, P2TR.
// For P2TR addresses this represents a special case. ECDSA is used to create
// a compact signature which makes the public key of the signature recoverable.
SignMessageWithAddr ( context . Context , * SignMessageWithAddrRequest ) ( * SignMessageWithAddrResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet addresses verifymessage`
2022-12-03 16:19:10 +01:00
// VerifyMessageWithAddr returns the validity and the recovered public key of
// the provided compact signature (base64 encoded). The verification is
// twofold. First the validity of the signature itself is checked and then
// it is verified that the recovered public key of the signature equals
// the public key of the provided address. There is no dependence on the
// private key of the address therefore also external addresses are allowed
// to verify signatures.
// Supported address types are P2PKH, P2WKH, NP2WKH, P2TR.
//
// This method is the counterpart of the related signing method
// (SignMessageWithAddr) and aims to provide full compatibility to
// bitcoin-core's implementation. Although bitcoin-core/btcd only provide
// this functionality for legacy addresses this function enhances it to
// the address types: P2PKH, P2WKH, NP2WKH, P2TR.
//
// The verification for P2TR addresses is a special case and requires the
// ECDSA compact signature to compare the reovered public key to the internal
// taproot key. The compact ECDSA signature format was used because there
// are still no known compact signature schemes for schnorr signatures.
VerifyMessageWithAddr ( context . Context , * VerifyMessageWithAddrRequest ) ( * VerifyMessageWithAddrResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet accounts import`
2022-08-24 11:42:34 -05:00
// ImportAccount imports an account backed by an account extended public key.
// The master key fingerprint denotes the fingerprint of the root key
// corresponding to the account public key (also known as the key with
// derivation path m/). This may be required by some hardware wallets for
// proper identification and signing.
//
// The address type can usually be inferred from the key's version, but may be
// required for certain keys to map them into the proper scope.
//
// For BIP-0044 keys, an address type must be specified as we intend to not
// support importing BIP-0044 keys into the wallet using the legacy
// pay-to-pubkey-hash (P2PKH) scheme. A nested witness address type will force
// the standard BIP-0049 derivation scheme, while a witness address type will
// force the standard BIP-0084 derivation scheme.
//
// For BIP-0049 keys, an address type must also be specified to make a
// distinction between the standard BIP-0049 address schema (nested witness
// pubkeys everywhere) and our own BIP-0049Plus address schema (nested pubkeys
// externally, witness pubkeys internally).
//
// NOTE: Events (deposits/spends) for keys derived from an account will only be
// detected by lnd if they happen after the import. Rescans to detect past
// events will be supported later on.
2021-07-27 12:59:59 +02:00
ImportAccount ( context . Context , * ImportAccountRequest ) ( * ImportAccountResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet accounts import-pubkey`
2022-07-29 18:20:09 +02:00
// ImportPublicKey imports a public key as watch-only into the wallet. The
// public key is converted into a simple address of the given type and that
// address script is watched on chain. For Taproot keys, this will only watch
// the BIP-0086 style output script. Use ImportTapscript for more advanced key
// spend or script spend outputs.
2021-07-27 12:59:59 +02:00
//
2022-08-24 11:42:34 -05:00
// NOTE: Events (deposits/spends) for a key will only be detected by lnd if
// they happen after the import. Rescans to detect past events will be
// supported later on.
2021-07-27 12:59:59 +02:00
ImportPublicKey ( context . Context , * ImportPublicKeyRequest ) ( * ImportPublicKeyResponse , error )
2022-07-29 18:20:09 +02:00
// ImportTapscript imports a Taproot script and internal key and adds the
// resulting Taproot output key as a watch-only output script into the wallet.
// For BIP-0086 style Taproot keys (no root hash commitment and no script spend
// path) use ImportPublicKey.
//
// NOTE: Events (deposits/spends) for a key will only be detected by lnd if
// they happen after the import. Rescans to detect past events will be
// supported later on.
//
// NOTE: Taproot keys imported through this RPC currently _cannot_ be used for
// funding PSBTs. Only tracking the balance and UTXOs is currently supported.
ImportTapscript ( context . Context , * ImportTapscriptRequest ) ( * ImportTapscriptResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet publishtx`
2022-08-24 11:42:34 -05:00
// PublishTransaction attempts to publish the passed transaction to the
// network. Once this returns without an error, the wallet will continually
// attempt to re-broadcast the transaction on start up, until it enters the
// chain.
2021-07-27 12:59:59 +02:00
PublishTransaction ( context . Context , * Transaction ) ( * PublishResponse , error )
2023-11-07 13:00:59 +01:00
// lncli: `wallet removetx`
// RemoveTransaction attempts to remove the provided transaction from the
// internal transaction store of the wallet.
RemoveTransaction ( context . Context , * GetTransactionRequest ) ( * RemoveTransactionResponse , error )
2022-08-24 11:42:34 -05:00
// SendOutputs is similar to the existing sendmany call in Bitcoind, and
// allows the caller to create a transaction that sends to several outputs at
// once. This is ideal when wanting to batch create a set of transactions.
2021-07-27 12:59:59 +02:00
SendOutputs ( context . Context , * SendOutputsRequest ) ( * SendOutputsResponse , error )
2022-08-24 11:42:34 -05:00
// EstimateFee attempts to query the internal fee estimator of the wallet to
// determine the fee (in sat/kw) to attach to a transaction in order to
// achieve the confirmation target.
2021-07-27 12:59:59 +02:00
EstimateFee ( context . Context , * EstimateFeeRequest ) ( * EstimateFeeResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `pendingsweeps`
2022-08-24 11:42:34 -05:00
// PendingSweeps returns lists of on-chain outputs that lnd is currently
// attempting to sweep within its central batching engine. Outputs with similar
// fee rates are batched together in order to sweep them within a single
// transaction.
//
// NOTE: Some of the fields within PendingSweepsRequest are not guaranteed to
// remain supported. This is an advanced API that depends on the internals of
// the UtxoSweeper, so things may change.
2021-07-27 12:59:59 +02:00
PendingSweeps ( context . Context , * PendingSweepsRequest ) ( * PendingSweepsResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet bumpfee`
2022-08-24 11:42:34 -05:00
// BumpFee bumps the fee of an arbitrary input within a transaction. This RPC
// takes a different approach than bitcoind's bumpfee command. lnd has a
// central batching engine in which inputs with similar fee rates are batched
// together to save on transaction fees. Due to this, we cannot rely on
// bumping the fee on a specific transaction, since transactions can change at
// any point with the addition of new inputs. The list of inputs that
// currently exist within lnd's central batching engine can be retrieved
// through the PendingSweeps RPC.
//
// When bumping the fee of an input that currently exists within lnd's central
// batching engine, a higher fee transaction will be created that replaces the
// lower fee transaction through the Replace-By-Fee (RBF) policy. If it
//
// This RPC also serves useful when wanting to perform a Child-Pays-For-Parent
// (CPFP), where the child transaction pays for its parent's fee. This can be
// done by specifying an outpoint within the low fee transaction that is under
// the control of the wallet.
//
// The fee preference can be expressed either as a specific fee rate or a delta
// of blocks in which the output should be swept on-chain within. If a fee
// preference is not explicitly specified, then an error is returned.
//
// Note that this RPC currently doesn't perform any validation checks on the
// fee preference being provided. For now, the responsibility of ensuring that
// the new fee preference is sufficient is delegated to the user.
2021-07-27 12:59:59 +02:00
BumpFee ( context . Context , * BumpFeeRequest ) ( * BumpFeeResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet listsweeps`
2022-08-24 11:42:34 -05:00
// ListSweeps returns a list of the sweep transactions our node has produced.
// Note that these sweeps may not be confirmed yet, as we record sweeps on
// broadcast, not confirmation.
2021-07-27 12:59:59 +02:00
ListSweeps ( context . Context , * ListSweepsRequest ) ( * ListSweepsResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet labeltx`
2022-08-24 11:42:34 -05:00
// LabelTransaction adds a label to a transaction. If the transaction already
// has a label the call will fail unless the overwrite bool is set. This will
// overwrite the exiting transaction label. Labels must not be empty, and
// cannot exceed 500 characters.
2021-07-27 12:59:59 +02:00
LabelTransaction ( context . Context , * LabelTransactionRequest ) ( * LabelTransactionResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet psbt fund`
2022-08-24 11:42:34 -05:00
// FundPsbt creates a fully populated PSBT that contains enough inputs to fund
2024-02-06 12:25:57 +01:00
// the outputs specified in the template. There are three ways a user can
// specify what we call the template (a list of inputs and outputs to use in
// the PSBT): Either as a PSBT packet directly with no coin selection (using
// the legacy "psbt" field), a PSBT with advanced coin selection support (using
// the new "coin_select" field) or as a raw RPC message (using the "raw"
// field).
// The legacy "psbt" and "raw" modes, the following restrictions apply:
// 1. If there are no inputs specified in the template, coin selection is
// performed automatically.
// 2. If the template does contain any inputs, it is assumed that full
// coin selection happened externally and no additional inputs are added. If
// the specified inputs aren't enough to fund the outputs with the given fee
// rate, an error is returned.
//
// The new "coin_select" mode does not have these restrictions and allows the
// user to specify a PSBT with inputs and outputs and still perform coin
// selection on top of that.
// For all modes this RPC requires any inputs that are specified to be locked
// by the user (if they belong to this node in the first place).
2022-08-24 11:42:34 -05:00
//
// After either selecting or verifying the inputs, all input UTXOs are locked
// with an internal app ID.
//
// NOTE: If this method returns without an error, it is the caller's
// responsibility to either spend the locked UTXOs (by finalizing and then
// publishing the transaction) or to unlock/release the locked UTXOs in case of
// an error on the caller's side.
2021-07-27 12:59:59 +02:00
FundPsbt ( context . Context , * FundPsbtRequest ) ( * FundPsbtResponse , error )
2022-08-24 11:42:34 -05:00
// SignPsbt expects a partial transaction with all inputs and outputs fully
// declared and tries to sign all unsigned inputs that have all required fields
// (UTXO information, BIP32 derivation information, witness or sig scripts)
// set.
// If no error is returned, the PSBT is ready to be given to the next signer or
// to be finalized if lnd was the last signer.
//
// NOTE: This RPC only signs inputs (and only those it can sign), it does not
// perform any other tasks (such as coin selection, UTXO locking or
// input/output/fee value validation, PSBT finalization). Any input that is
// incomplete will be skipped.
2022-01-05 11:04:24 +01:00
SignPsbt ( context . Context , * SignPsbtRequest ) ( * SignPsbtResponse , error )
2023-11-14 16:43:24 -08:00
// lncli: `wallet psbt finalize`
2022-08-24 11:42:34 -05:00
// FinalizePsbt expects a partial transaction with all inputs and outputs fully
// declared and tries to sign all inputs that belong to the wallet. Lnd must be
// the last signer of the transaction. That means, if there are any unsigned
// non-witness inputs or inputs without UTXO information attached or inputs
// without witness data that do not belong to lnd's wallet, this method will
// fail. If no error is returned, the PSBT is ready to be extracted and the
// final TX within to be broadcast.
//
// NOTE: This method does NOT publish the transaction once finalized. It is the
// caller's responsibility to either publish the transaction on success or
// unlock/release any locked UTXOs in case of an error in this method.
2021-07-27 12:59:59 +02:00
FinalizePsbt ( context . Context , * FinalizePsbtRequest ) ( * FinalizePsbtResponse , error )
mustEmbedUnimplementedWalletKitServer ( )
}
// UnimplementedWalletKitServer must be embedded to have forward compatible implementations.
type UnimplementedWalletKitServer struct {
}
func ( UnimplementedWalletKitServer ) ListUnspent ( context . Context , * ListUnspentRequest ) ( * ListUnspentResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListUnspent not implemented" )
}
func ( UnimplementedWalletKitServer ) LeaseOutput ( context . Context , * LeaseOutputRequest ) ( * LeaseOutputResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method LeaseOutput not implemented" )
}
func ( UnimplementedWalletKitServer ) ReleaseOutput ( context . Context , * ReleaseOutputRequest ) ( * ReleaseOutputResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ReleaseOutput not implemented" )
}
func ( UnimplementedWalletKitServer ) ListLeases ( context . Context , * ListLeasesRequest ) ( * ListLeasesResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListLeases not implemented" )
}
func ( UnimplementedWalletKitServer ) DeriveNextKey ( context . Context , * KeyReq ) ( * signrpc . KeyDescriptor , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DeriveNextKey not implemented" )
}
func ( UnimplementedWalletKitServer ) DeriveKey ( context . Context , * signrpc . KeyLocator ) ( * signrpc . KeyDescriptor , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DeriveKey not implemented" )
}
func ( UnimplementedWalletKitServer ) NextAddr ( context . Context , * AddrRequest ) ( * AddrResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method NextAddr not implemented" )
}
2023-01-18 13:29:09 +08:00
func ( UnimplementedWalletKitServer ) GetTransaction ( context . Context , * GetTransactionRequest ) ( * lnrpc . Transaction , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetTransaction not implemented" )
}
2021-07-27 12:59:59 +02:00
func ( UnimplementedWalletKitServer ) ListAccounts ( context . Context , * ListAccountsRequest ) ( * ListAccountsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListAccounts not implemented" )
}
2022-06-20 18:43:29 +05:30
func ( UnimplementedWalletKitServer ) RequiredReserve ( context . Context , * RequiredReserveRequest ) ( * RequiredReserveResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method RequiredReserve not implemented" )
}
2022-07-23 11:06:23 +05:30
func ( UnimplementedWalletKitServer ) ListAddresses ( context . Context , * ListAddressesRequest ) ( * ListAddressesResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListAddresses not implemented" )
}
2022-12-03 16:19:10 +01:00
func ( UnimplementedWalletKitServer ) SignMessageWithAddr ( context . Context , * SignMessageWithAddrRequest ) ( * SignMessageWithAddrResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SignMessageWithAddr not implemented" )
}
func ( UnimplementedWalletKitServer ) VerifyMessageWithAddr ( context . Context , * VerifyMessageWithAddrRequest ) ( * VerifyMessageWithAddrResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method VerifyMessageWithAddr not implemented" )
}
2021-07-27 12:59:59 +02:00
func ( UnimplementedWalletKitServer ) ImportAccount ( context . Context , * ImportAccountRequest ) ( * ImportAccountResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ImportAccount not implemented" )
}
func ( UnimplementedWalletKitServer ) ImportPublicKey ( context . Context , * ImportPublicKeyRequest ) ( * ImportPublicKeyResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ImportPublicKey not implemented" )
}
2022-07-29 18:20:09 +02:00
func ( UnimplementedWalletKitServer ) ImportTapscript ( context . Context , * ImportTapscriptRequest ) ( * ImportTapscriptResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ImportTapscript not implemented" )
}
2021-07-27 12:59:59 +02:00
func ( UnimplementedWalletKitServer ) PublishTransaction ( context . Context , * Transaction ) ( * PublishResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method PublishTransaction not implemented" )
}
2023-11-07 13:00:59 +01:00
func ( UnimplementedWalletKitServer ) RemoveTransaction ( context . Context , * GetTransactionRequest ) ( * RemoveTransactionResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method RemoveTransaction not implemented" )
}
2021-07-27 12:59:59 +02:00
func ( UnimplementedWalletKitServer ) SendOutputs ( context . Context , * SendOutputsRequest ) ( * SendOutputsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SendOutputs not implemented" )
}
func ( UnimplementedWalletKitServer ) EstimateFee ( context . Context , * EstimateFeeRequest ) ( * EstimateFeeResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method EstimateFee not implemented" )
}
func ( UnimplementedWalletKitServer ) PendingSweeps ( context . Context , * PendingSweepsRequest ) ( * PendingSweepsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method PendingSweeps not implemented" )
}
func ( UnimplementedWalletKitServer ) BumpFee ( context . Context , * BumpFeeRequest ) ( * BumpFeeResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method BumpFee not implemented" )
}
func ( UnimplementedWalletKitServer ) ListSweeps ( context . Context , * ListSweepsRequest ) ( * ListSweepsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListSweeps not implemented" )
}
func ( UnimplementedWalletKitServer ) LabelTransaction ( context . Context , * LabelTransactionRequest ) ( * LabelTransactionResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method LabelTransaction not implemented" )
}
func ( UnimplementedWalletKitServer ) FundPsbt ( context . Context , * FundPsbtRequest ) ( * FundPsbtResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method FundPsbt not implemented" )
}
2022-01-05 11:04:24 +01:00
func ( UnimplementedWalletKitServer ) SignPsbt ( context . Context , * SignPsbtRequest ) ( * SignPsbtResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SignPsbt not implemented" )
}
2021-07-27 12:59:59 +02:00
func ( UnimplementedWalletKitServer ) FinalizePsbt ( context . Context , * FinalizePsbtRequest ) ( * FinalizePsbtResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method FinalizePsbt not implemented" )
}
func ( UnimplementedWalletKitServer ) mustEmbedUnimplementedWalletKitServer ( ) { }
// UnsafeWalletKitServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to WalletKitServer will
// result in compilation errors.
type UnsafeWalletKitServer interface {
mustEmbedUnimplementedWalletKitServer ( )
}
func RegisterWalletKitServer ( s grpc . ServiceRegistrar , srv WalletKitServer ) {
s . RegisterService ( & WalletKit_ServiceDesc , srv )
}
func _WalletKit_ListUnspent_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListUnspentRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . ListUnspent ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/ListUnspent" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . ListUnspent ( ctx , req . ( * ListUnspentRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _WalletKit_LeaseOutput_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( LeaseOutputRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . LeaseOutput ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/LeaseOutput" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . LeaseOutput ( ctx , req . ( * LeaseOutputRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _WalletKit_ReleaseOutput_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ReleaseOutputRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . ReleaseOutput ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/ReleaseOutput" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . ReleaseOutput ( ctx , req . ( * ReleaseOutputRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _WalletKit_ListLeases_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListLeasesRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . ListLeases ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/ListLeases" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . ListLeases ( ctx , req . ( * ListLeasesRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _WalletKit_DeriveNextKey_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( KeyReq )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . DeriveNextKey ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/DeriveNextKey" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . DeriveNextKey ( ctx , req . ( * KeyReq ) )
}
return interceptor ( ctx , in , info , handler )
}
func _WalletKit_DeriveKey_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( signrpc . KeyLocator )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . DeriveKey ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/DeriveKey" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . DeriveKey ( ctx , req . ( * signrpc . KeyLocator ) )
}
return interceptor ( ctx , in , info , handler )
}
func _WalletKit_NextAddr_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( AddrRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . NextAddr ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/NextAddr" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . NextAddr ( ctx , req . ( * AddrRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-01-18 13:29:09 +08:00
func _WalletKit_GetTransaction_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetTransactionRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . GetTransaction ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/GetTransaction" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . GetTransaction ( ctx , req . ( * GetTransactionRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-07-27 12:59:59 +02:00
func _WalletKit_ListAccounts_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListAccountsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . ListAccounts ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/ListAccounts" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . ListAccounts ( ctx , req . ( * ListAccountsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-06-20 18:43:29 +05:30
func _WalletKit_RequiredReserve_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( RequiredReserveRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . RequiredReserve ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/RequiredReserve" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . RequiredReserve ( ctx , req . ( * RequiredReserveRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-07-23 11:06:23 +05:30
func _WalletKit_ListAddresses_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListAddressesRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . ListAddresses ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/ListAddresses" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . ListAddresses ( ctx , req . ( * ListAddressesRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-12-03 16:19:10 +01:00
func _WalletKit_SignMessageWithAddr_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SignMessageWithAddrRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . SignMessageWithAddr ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/SignMessageWithAddr" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . SignMessageWithAddr ( ctx , req . ( * SignMessageWithAddrRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _WalletKit_VerifyMessageWithAddr_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( VerifyMessageWithAddrRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . VerifyMessageWithAddr ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/VerifyMessageWithAddr" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . VerifyMessageWithAddr ( ctx , req . ( * VerifyMessageWithAddrRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-07-27 12:59:59 +02:00
func _WalletKit_ImportAccount_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ImportAccountRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . ImportAccount ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/ImportAccount" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . ImportAccount ( ctx , req . ( * ImportAccountRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _WalletKit_ImportPublicKey_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ImportPublicKeyRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . ImportPublicKey ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/ImportPublicKey" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . ImportPublicKey ( ctx , req . ( * ImportPublicKeyRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-07-29 18:20:09 +02:00
func _WalletKit_ImportTapscript_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ImportTapscriptRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . ImportTapscript ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/ImportTapscript" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . ImportTapscript ( ctx , req . ( * ImportTapscriptRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-07-27 12:59:59 +02:00
func _WalletKit_PublishTransaction_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( Transaction )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . PublishTransaction ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/PublishTransaction" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . PublishTransaction ( ctx , req . ( * Transaction ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-11-07 13:00:59 +01:00
func _WalletKit_RemoveTransaction_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetTransactionRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . RemoveTransaction ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/RemoveTransaction" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . RemoveTransaction ( ctx , req . ( * GetTransactionRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-07-27 12:59:59 +02:00
func _WalletKit_SendOutputs_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SendOutputsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . SendOutputs ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/SendOutputs" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . SendOutputs ( ctx , req . ( * SendOutputsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _WalletKit_EstimateFee_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( EstimateFeeRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . EstimateFee ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/EstimateFee" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . EstimateFee ( ctx , req . ( * EstimateFeeRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _WalletKit_PendingSweeps_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( PendingSweepsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . PendingSweeps ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/PendingSweeps" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . PendingSweeps ( ctx , req . ( * PendingSweepsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _WalletKit_BumpFee_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( BumpFeeRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . BumpFee ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/BumpFee" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . BumpFee ( ctx , req . ( * BumpFeeRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _WalletKit_ListSweeps_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListSweepsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . ListSweeps ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/ListSweeps" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . ListSweeps ( ctx , req . ( * ListSweepsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _WalletKit_LabelTransaction_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( LabelTransactionRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . LabelTransaction ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/LabelTransaction" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . LabelTransaction ( ctx , req . ( * LabelTransactionRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _WalletKit_FundPsbt_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( FundPsbtRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . FundPsbt ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/FundPsbt" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . FundPsbt ( ctx , req . ( * FundPsbtRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-01-05 11:04:24 +01:00
func _WalletKit_SignPsbt_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SignPsbtRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . SignPsbt ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/SignPsbt" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . SignPsbt ( ctx , req . ( * SignPsbtRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-07-27 12:59:59 +02:00
func _WalletKit_FinalizePsbt_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( FinalizePsbtRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( WalletKitServer ) . FinalizePsbt ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/walletrpc.WalletKit/FinalizePsbt" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( WalletKitServer ) . FinalizePsbt ( ctx , req . ( * FinalizePsbtRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
// WalletKit_ServiceDesc is the grpc.ServiceDesc for WalletKit service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var WalletKit_ServiceDesc = grpc . ServiceDesc {
ServiceName : "walletrpc.WalletKit" ,
HandlerType : ( * WalletKitServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
{
MethodName : "ListUnspent" ,
Handler : _WalletKit_ListUnspent_Handler ,
} ,
{
MethodName : "LeaseOutput" ,
Handler : _WalletKit_LeaseOutput_Handler ,
} ,
{
MethodName : "ReleaseOutput" ,
Handler : _WalletKit_ReleaseOutput_Handler ,
} ,
{
MethodName : "ListLeases" ,
Handler : _WalletKit_ListLeases_Handler ,
} ,
{
MethodName : "DeriveNextKey" ,
Handler : _WalletKit_DeriveNextKey_Handler ,
} ,
{
MethodName : "DeriveKey" ,
Handler : _WalletKit_DeriveKey_Handler ,
} ,
{
MethodName : "NextAddr" ,
Handler : _WalletKit_NextAddr_Handler ,
} ,
2023-01-18 13:29:09 +08:00
{
MethodName : "GetTransaction" ,
Handler : _WalletKit_GetTransaction_Handler ,
} ,
2021-07-27 12:59:59 +02:00
{
MethodName : "ListAccounts" ,
Handler : _WalletKit_ListAccounts_Handler ,
} ,
2022-06-20 18:43:29 +05:30
{
MethodName : "RequiredReserve" ,
Handler : _WalletKit_RequiredReserve_Handler ,
} ,
2022-07-23 11:06:23 +05:30
{
MethodName : "ListAddresses" ,
Handler : _WalletKit_ListAddresses_Handler ,
} ,
2022-12-03 16:19:10 +01:00
{
MethodName : "SignMessageWithAddr" ,
Handler : _WalletKit_SignMessageWithAddr_Handler ,
} ,
{
MethodName : "VerifyMessageWithAddr" ,
Handler : _WalletKit_VerifyMessageWithAddr_Handler ,
} ,
2021-07-27 12:59:59 +02:00
{
MethodName : "ImportAccount" ,
Handler : _WalletKit_ImportAccount_Handler ,
} ,
{
MethodName : "ImportPublicKey" ,
Handler : _WalletKit_ImportPublicKey_Handler ,
} ,
2022-07-29 18:20:09 +02:00
{
MethodName : "ImportTapscript" ,
Handler : _WalletKit_ImportTapscript_Handler ,
} ,
2021-07-27 12:59:59 +02:00
{
MethodName : "PublishTransaction" ,
Handler : _WalletKit_PublishTransaction_Handler ,
} ,
2023-11-07 13:00:59 +01:00
{
MethodName : "RemoveTransaction" ,
Handler : _WalletKit_RemoveTransaction_Handler ,
} ,
2021-07-27 12:59:59 +02:00
{
MethodName : "SendOutputs" ,
Handler : _WalletKit_SendOutputs_Handler ,
} ,
{
MethodName : "EstimateFee" ,
Handler : _WalletKit_EstimateFee_Handler ,
} ,
{
MethodName : "PendingSweeps" ,
Handler : _WalletKit_PendingSweeps_Handler ,
} ,
{
MethodName : "BumpFee" ,
Handler : _WalletKit_BumpFee_Handler ,
} ,
{
MethodName : "ListSweeps" ,
Handler : _WalletKit_ListSweeps_Handler ,
} ,
{
MethodName : "LabelTransaction" ,
Handler : _WalletKit_LabelTransaction_Handler ,
} ,
{
MethodName : "FundPsbt" ,
Handler : _WalletKit_FundPsbt_Handler ,
} ,
2022-01-05 11:04:24 +01:00
{
MethodName : "SignPsbt" ,
Handler : _WalletKit_SignPsbt_Handler ,
} ,
2021-07-27 12:59:59 +02:00
{
MethodName : "FinalizePsbt" ,
Handler : _WalletKit_FinalizePsbt_Handler ,
} ,
} ,
Streams : [ ] grpc . StreamDesc { } ,
Metadata : "walletrpc/walletkit.proto" ,
}