public class SynchronousWalletKitAPI extends SynchronousAPI
channel, DEFAULT_MAX_INBOUND_MESSAGE_SIZE, log, performValidation, statusExceptionWrapper, wrapperFactory
Constructor and Description |
---|
SynchronousWalletKitAPI(io.grpc.ManagedChannel channel)
Constructor used for setting up a connection using a GRPC managed channel that
can be customized.
|
SynchronousWalletKitAPI(java.lang.String host,
int port,
java.io.File trustedServerCertificate,
java.io.File macaroonFile)
Minimal constructor for setting up a connection with LND Application.
|
SynchronousWalletKitAPI(java.lang.String host,
int port,
io.grpc.netty.shaded.io.netty.handler.ssl.SslContext sslContext,
MacaroonContext macaroonContext)
Constructor for setting up a connection with LND Application with more flexible
SSL context parameters.
|
Modifier and Type | Method and Description |
---|---|
BumpFeeResponse |
bumpFee(BumpFeeRequest request)
Method to send a bumpFee request.
|
BumpFeeResponse |
bumpFee(OutPoint outpoint,
java.lang.Integer targetConf,
java.lang.Integer satPerByte,
java.lang.Boolean force,
java.lang.Long satPerVbyte)
Method to generate a bumpFee request.
|
KeyDescriptor |
deriveKey(java.lang.Integer keyFamily,
java.lang.Integer keyIndex)
Method to generate a deriveKey request.
|
KeyDescriptor |
deriveKey(KeyLocator request)
Method to send a deriveKey request.
|
KeyDescriptor |
deriveNextKey(java.lang.Integer keyFingerPrint,
java.lang.Integer keyFamily)
Method to generate a deriveNextKey request.
|
KeyDescriptor |
deriveNextKey(KeyReq request)
Method to send a deriveNextKey request.
|
EstimateFeeResponse |
estimateFee(EstimateFeeRequest request)
Method to send a estimateFee request.
|
EstimateFeeResponse |
estimateFee(java.lang.Integer confTarget)
Method to generate a estimateFee request.
|
FinalizePsbtResponse |
finalizePsbt(byte[] fundedPsbt,
java.lang.String account)
Method to generate a finalizePsbt request.
|
FinalizePsbtResponse |
finalizePsbt(FinalizePsbtRequest request)
Method to send a finalizePsbt request.
|
FundPsbtResponse |
fundPsbt(byte[] psbt,
TxTemplate raw,
java.lang.Integer targetConf,
java.lang.Long satPerVbyte,
java.lang.String account,
java.lang.Integer minConfs,
java.lang.Boolean spendUnconfirmed,
ChangeAddressType changeType)
Method to generate a fundPsbt request.
|
FundPsbtResponse |
fundPsbt(FundPsbtRequest request)
Method to send a fundPsbt request.
|
protected WalletKitGrpc.WalletKitBlockingStub |
getStub() |
ImportAccountResponse |
importAccount(ImportAccountRequest request)
Method to send a importAccount request.
|
ImportAccountResponse |
importAccount(java.lang.String name,
java.lang.String extendedPublicKey,
byte[] masterKeyFingerprint,
AddressType addressType,
java.lang.Boolean dryRun)
Method to generate a importAccount request.
|
ImportPublicKeyResponse |
importPublicKey(byte[] publicKey,
AddressType addressType)
Method to generate a importPublicKey request.
|
ImportPublicKeyResponse |
importPublicKey(ImportPublicKeyRequest request)
Method to send a importPublicKey request.
|
ImportTapscriptResponse |
importTapscript(byte[] internalPublicKey,
TapscriptFullTree fullTree,
TapscriptPartialReveal partialReveal,
byte[] rootHashOnly,
java.lang.Boolean fullKeyOnly)
Method to generate a importTapscript request.
|
ImportTapscriptResponse |
importTapscript(ImportTapscriptRequest request)
Method to send a importTapscript request.
|
LabelTransactionResponse |
labelTransaction(byte[] txid,
java.lang.String label,
java.lang.Boolean overwrite)
Method to generate a labelTransaction request.
|
LabelTransactionResponse |
labelTransaction(LabelTransactionRequest request)
Method to send a labelTransaction request.
|
LeaseOutputResponse |
leaseOutput(byte[] id,
OutPoint outpoint,
java.lang.Long expirationSeconds)
Method to generate a leaseOutput request.
|
LeaseOutputResponse |
leaseOutput(LeaseOutputRequest request)
Method to send a leaseOutput request.
|
ListAccountsResponse |
listAccounts(ListAccountsRequest request)
Method to send a listAccounts request.
|
ListAccountsResponse |
listAccounts(java.lang.String name,
AddressType addressType)
Method to generate a listAccounts request.
|
ListAddressesResponse |
listAddresses(ListAddressesRequest request)
Method to send a listAddresses request.
|
ListAddressesResponse |
listAddresses(java.lang.String accountName,
java.lang.Boolean showCustomAccounts)
Method to generate a listAddresses request.
|
ListLeasesResponse |
listLeases()
Method to generate a listLeases request.
|
ListLeasesResponse |
listLeases(ListLeasesRequest request)
Method to send a listLeases request.
|
ListSweepsResponse |
listSweeps(java.lang.Boolean verbose,
java.lang.Integer startHeight)
Method to generate a listSweeps request.
|
ListSweepsResponse |
listSweeps(ListSweepsRequest request)
Method to send a listSweeps request.
|
ListUnspentResponse |
listUnspent(java.lang.Integer minConfs,
java.lang.Integer maxConfs,
java.lang.String account,
java.lang.Boolean unconfirmedOnly)
Method to generate a listUnspent request.
|
ListUnspentResponse |
listUnspent(ListUnspentRequest request)
Method to send a listUnspent request.
|
AddrResponse |
nextAddr(AddrRequest request)
Method to send a nextAddr request.
|
AddrResponse |
nextAddr(java.lang.String account,
AddressType type,
java.lang.Boolean change)
Method to generate a nextAddr request.
|
PendingSweepsResponse |
pendingSweeps()
Method to generate a pendingSweeps request.
|
PendingSweepsResponse |
pendingSweeps(PendingSweepsRequest request)
Method to send a pendingSweeps request.
|
PublishResponse |
publishTransaction(byte[] txHex,
java.lang.String label)
Method to generate a publishTransaction request.
|
PublishResponse |
publishTransaction(Transaction request)
Method to send a publishTransaction request.
|
ReleaseOutputResponse |
releaseOutput(byte[] id,
OutPoint outpoint)
Method to generate a releaseOutput request.
|
ReleaseOutputResponse |
releaseOutput(ReleaseOutputRequest request)
Method to send a releaseOutput request.
|
RequiredReserveResponse |
requiredReserve(java.lang.Integer additionalPublicChannels)
Method to generate a requiredReserve request.
|
RequiredReserveResponse |
requiredReserve(RequiredReserveRequest request)
Method to send a requiredReserve request.
|
SendOutputsResponse |
sendOutputs(java.lang.Long satPerKw,
java.util.List<TxOut> outputs,
java.lang.String label,
java.lang.Integer minConfs,
java.lang.Boolean spendUnconfirmed)
Method to generate a sendOutputs request.
|
SendOutputsResponse |
sendOutputs(SendOutputsRequest request)
Method to send a sendOutputs request.
|
SignMessageWithAddrResponse |
signMessageWithAddr(byte[] msg,
java.lang.String addr)
Method to generate a signMessageWithAddr request.
|
SignMessageWithAddrResponse |
signMessageWithAddr(SignMessageWithAddrRequest request)
Method to send a signMessageWithAddr request.
|
SignPsbtResponse |
signPsbt(byte[] fundedPsbt)
Method to generate a signPsbt request.
|
SignPsbtResponse |
signPsbt(SignPsbtRequest request)
Method to send a signPsbt request.
|
VerifyMessageWithAddrResponse |
verifyMessageWithAddr(byte[] msg,
java.lang.String signature,
java.lang.String addr)
Method to generate a verifyMessageWithAddr request.
|
VerifyMessageWithAddrResponse |
verifyMessageWithAddr(VerifyMessageWithAddrRequest request)
Method to send a verifyMessageWithAddr request.
|
processRepeatableResponse, processResponse
close, isPerformValidation, processRequest, setPerformValidation, validate
public SynchronousWalletKitAPI(java.lang.String host, int port, java.io.File trustedServerCertificate, java.io.File macaroonFile) throws javax.net.ssl.SSLException, ClientSideException
host
- the hostname of ldn applicationport
- the port of the application.trustedServerCertificate
- a link of the SSL certificate used by the LND Application.macaroonFile
- the file pointing to the macaroon to use, or null if no macaroons are used.javax.net.ssl.SSLException
- if problems occurred setting up the SSL Connection.ClientSideException
- if problems occurred reading the macaroon file.public SynchronousWalletKitAPI(java.lang.String host, int port, io.grpc.netty.shaded.io.netty.handler.ssl.SslContext sslContext, MacaroonContext macaroonContext)
host
- the hostname of ldn applicationport
- the port of the application.sslContext
- the SSL Context used when connecting the LND Application.macaroonContext
- the macaroon context to use.public SynchronousWalletKitAPI(io.grpc.ManagedChannel channel)
channel
- the managed channel to use.public LeaseOutputResponse leaseOutput(byte[] id, OutPoint outpoint, java.lang.Long expirationSeconds) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.leaseOutput(WalletKitOuterClass.LeaseOutputRequest)
public LeaseOutputResponse leaseOutput(LeaseOutputRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.leaseOutput(WalletKitOuterClass.LeaseOutputRequest)
public ReleaseOutputResponse releaseOutput(byte[] id, OutPoint outpoint) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.releaseOutput(WalletKitOuterClass.ReleaseOutputRequest)
public ReleaseOutputResponse releaseOutput(ReleaseOutputRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.releaseOutput(WalletKitOuterClass.ReleaseOutputRequest)
public ListLeasesResponse listLeases() throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.listLeases(WalletKitOuterClass.ListLeasesRequest)
public ListLeasesResponse listLeases(ListLeasesRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.listLeases(WalletKitOuterClass.ListLeasesRequest)
public ListAccountsResponse listAccounts(java.lang.String name, AddressType addressType) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.listAccounts(WalletKitOuterClass.ListAccountsRequest)
public ListAccountsResponse listAccounts(ListAccountsRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.listAccounts(WalletKitOuterClass.ListAccountsRequest)
public RequiredReserveResponse requiredReserve(java.lang.Integer additionalPublicChannels) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.requiredReserve(WalletKitOuterClass.RequiredReserveRequest)
public RequiredReserveResponse requiredReserve(RequiredReserveRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.requiredReserve(WalletKitOuterClass.RequiredReserveRequest)
public ListAddressesResponse listAddresses(java.lang.String accountName, java.lang.Boolean showCustomAccounts) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.listAddresses(WalletKitOuterClass.ListAddressesRequest)
public ListAddressesResponse listAddresses(ListAddressesRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.listAddresses(WalletKitOuterClass.ListAddressesRequest)
public SignMessageWithAddrResponse signMessageWithAddr(byte[] msg, java.lang.String addr) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.signMessageWithAddr(WalletKitOuterClass.SignMessageWithAddrRequest)
public SignMessageWithAddrResponse signMessageWithAddr(SignMessageWithAddrRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.signMessageWithAddr(WalletKitOuterClass.SignMessageWithAddrRequest)
public VerifyMessageWithAddrResponse verifyMessageWithAddr(byte[] msg, java.lang.String signature, java.lang.String addr) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.verifyMessageWithAddr(WalletKitOuterClass.VerifyMessageWithAddrRequest)
public VerifyMessageWithAddrResponse verifyMessageWithAddr(VerifyMessageWithAddrRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.verifyMessageWithAddr(WalletKitOuterClass.VerifyMessageWithAddrRequest)
public ImportAccountResponse importAccount(java.lang.String name, java.lang.String extendedPublicKey, byte[] masterKeyFingerprint, AddressType addressType, java.lang.Boolean dryRun) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.importAccount(WalletKitOuterClass.ImportAccountRequest)
public ImportAccountResponse importAccount(ImportAccountRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.importAccount(WalletKitOuterClass.ImportAccountRequest)
public ImportPublicKeyResponse importPublicKey(byte[] publicKey, AddressType addressType) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.importPublicKey(WalletKitOuterClass.ImportPublicKeyRequest)
public ImportPublicKeyResponse importPublicKey(ImportPublicKeyRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.importPublicKey(WalletKitOuterClass.ImportPublicKeyRequest)
public ImportTapscriptResponse importTapscript(byte[] internalPublicKey, TapscriptFullTree fullTree, TapscriptPartialReveal partialReveal, byte[] rootHashOnly, java.lang.Boolean fullKeyOnly) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.importTapscript(WalletKitOuterClass.ImportTapscriptRequest)
public ImportTapscriptResponse importTapscript(ImportTapscriptRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.importTapscript(WalletKitOuterClass.ImportTapscriptRequest)
public PublishResponse publishTransaction(byte[] txHex, java.lang.String label) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.publishTransaction(WalletKitOuterClass.Transaction)
public PublishResponse publishTransaction(Transaction request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.publishTransaction(WalletKitOuterClass.Transaction)
public SendOutputsResponse sendOutputs(java.lang.Long satPerKw, java.util.List<TxOut> outputs, java.lang.String label, java.lang.Integer minConfs, java.lang.Boolean spendUnconfirmed) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.sendOutputs(WalletKitOuterClass.SendOutputsRequest)
public SendOutputsResponse sendOutputs(SendOutputsRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.sendOutputs(WalletKitOuterClass.SendOutputsRequest)
public PendingSweepsResponse pendingSweeps() throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.pendingSweeps(WalletKitOuterClass.PendingSweepsRequest)
public PendingSweepsResponse pendingSweeps(PendingSweepsRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.pendingSweeps(WalletKitOuterClass.PendingSweepsRequest)
public ListSweepsResponse listSweeps(java.lang.Boolean verbose, java.lang.Integer startHeight) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.listSweeps(WalletKitOuterClass.ListSweepsRequest)
public ListSweepsResponse listSweeps(ListSweepsRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.listSweeps(WalletKitOuterClass.ListSweepsRequest)
public LabelTransactionResponse labelTransaction(byte[] txid, java.lang.String label, java.lang.Boolean overwrite) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.labelTransaction(WalletKitOuterClass.LabelTransactionRequest)
public LabelTransactionResponse labelTransaction(LabelTransactionRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.labelTransaction(WalletKitOuterClass.LabelTransactionRequest)
public FinalizePsbtResponse finalizePsbt(byte[] fundedPsbt, java.lang.String account) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.finalizePsbt(WalletKitOuterClass.FinalizePsbtRequest)
public FinalizePsbtResponse finalizePsbt(FinalizePsbtRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.finalizePsbt(WalletKitOuterClass.FinalizePsbtRequest)
public EstimateFeeResponse estimateFee(java.lang.Integer confTarget) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.estimateFee(WalletKitOuterClass.EstimateFeeRequest)
public EstimateFeeResponse estimateFee(EstimateFeeRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.estimateFee(WalletKitOuterClass.EstimateFeeRequest)
public ListUnspentResponse listUnspent(java.lang.Integer minConfs, java.lang.Integer maxConfs, java.lang.String account, java.lang.Boolean unconfirmedOnly) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.listUnspent(WalletKitOuterClass.ListUnspentRequest)
public ListUnspentResponse listUnspent(ListUnspentRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.listUnspent(WalletKitOuterClass.ListUnspentRequest)
public AddrResponse nextAddr(java.lang.String account, AddressType type, java.lang.Boolean change) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.nextAddr(WalletKitOuterClass.AddrRequest)
public AddrResponse nextAddr(AddrRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.nextAddr(WalletKitOuterClass.AddrRequest)
public FundPsbtResponse fundPsbt(byte[] psbt, TxTemplate raw, java.lang.Integer targetConf, java.lang.Long satPerVbyte, java.lang.String account, java.lang.Integer minConfs, java.lang.Boolean spendUnconfirmed, ChangeAddressType changeType) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.fundPsbt(WalletKitOuterClass.FundPsbtRequest)
public FundPsbtResponse fundPsbt(FundPsbtRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.fundPsbt(WalletKitOuterClass.FundPsbtRequest)
public SignPsbtResponse signPsbt(byte[] fundedPsbt) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.signPsbt(WalletKitOuterClass.SignPsbtRequest)
public SignPsbtResponse signPsbt(SignPsbtRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.signPsbt(WalletKitOuterClass.SignPsbtRequest)
public BumpFeeResponse bumpFee(OutPoint outpoint, java.lang.Integer targetConf, java.lang.Integer satPerByte, java.lang.Boolean force, java.lang.Long satPerVbyte) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.bumpFee(WalletKitOuterClass.BumpFeeRequest)
public BumpFeeResponse bumpFee(BumpFeeRequest request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.bumpFee(WalletKitOuterClass.BumpFeeRequest)
public KeyDescriptor deriveKey(java.lang.Integer keyFamily, java.lang.Integer keyIndex) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.deriveKey(org.lightningj.lnd.signer.proto.SignerOuterClass.KeyLocator)
public KeyDescriptor deriveKey(KeyLocator request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.deriveKey(org.lightningj.lnd.signer.proto.SignerOuterClass.KeyLocator)
public KeyDescriptor deriveNextKey(java.lang.Integer keyFingerPrint, java.lang.Integer keyFamily) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.deriveNextKey(WalletKitOuterClass.KeyReq)
public KeyDescriptor deriveNextKey(KeyReq request) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletKitGrpc.WalletKitBlockingStub.deriveNextKey(WalletKitOuterClass.KeyReq)
protected WalletKitGrpc.WalletKitBlockingStub getStub()