// package: boltzrpc // file: boltzrpc.proto /* tslint:disable */ import * as grpc from "grpc"; import * as boltzrpc_pb from "./boltzrpc_pb"; interface IBoltzService extends grpc.ServiceDefinition { getInfo: IBoltzService_IGetInfo; getBalance: IBoltzService_IGetBalance; getTransaction: IBoltzService_IGetTransaction; broadcastTransaction: IBoltzService_IBroadcastTransaction; getFeeEstimation: IBoltzService_IGetFeeEstimation; newAddress: IBoltzService_INewAddress; sendCoins: IBoltzService_ISendCoins; createSwap: IBoltzService_ICreateSwap; createReverseSwap: IBoltzService_ICreateReverseSwap; listenOnAddress: IBoltzService_IListenOnAddress; subscribeTransactions: IBoltzService_ISubscribeTransactions; subscribeInvoices: IBoltzService_ISubscribeInvoices; subscribeClaims: IBoltzService_ISubscribeClaims; subscribeRefunds: IBoltzService_ISubscribeRefunds; subscribeChannelBackups: IBoltzService_ISubscribeChannelBackups; } interface IBoltzService_IGetInfo extends grpc.MethodDefinition { path: string; // "/boltzrpc.Boltz/GetInfo" requestStream: boolean; // false responseStream: boolean; // false requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IBoltzService_IGetBalance extends grpc.MethodDefinition { path: string; // "/boltzrpc.Boltz/GetBalance" requestStream: boolean; // false responseStream: boolean; // false requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IBoltzService_IGetTransaction extends grpc.MethodDefinition { path: string; // "/boltzrpc.Boltz/GetTransaction" requestStream: boolean; // false responseStream: boolean; // false requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IBoltzService_IBroadcastTransaction extends grpc.MethodDefinition { path: string; // "/boltzrpc.Boltz/BroadcastTransaction" requestStream: boolean; // false responseStream: boolean; // false requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IBoltzService_IGetFeeEstimation extends grpc.MethodDefinition { path: string; // "/boltzrpc.Boltz/GetFeeEstimation" requestStream: boolean; // false responseStream: boolean; // false requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IBoltzService_INewAddress extends grpc.MethodDefinition { path: string; // "/boltzrpc.Boltz/NewAddress" requestStream: boolean; // false responseStream: boolean; // false requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IBoltzService_ISendCoins extends grpc.MethodDefinition { path: string; // "/boltzrpc.Boltz/SendCoins" requestStream: boolean; // false responseStream: boolean; // false requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IBoltzService_ICreateSwap extends grpc.MethodDefinition { path: string; // "/boltzrpc.Boltz/CreateSwap" requestStream: boolean; // false responseStream: boolean; // false requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IBoltzService_ICreateReverseSwap extends grpc.MethodDefinition { path: string; // "/boltzrpc.Boltz/CreateReverseSwap" requestStream: boolean; // false responseStream: boolean; // false requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IBoltzService_IListenOnAddress extends grpc.MethodDefinition { path: string; // "/boltzrpc.Boltz/ListenOnAddress" requestStream: boolean; // false responseStream: boolean; // false requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IBoltzService_ISubscribeTransactions extends grpc.MethodDefinition { path: string; // "/boltzrpc.Boltz/SubscribeTransactions" requestStream: boolean; // false responseStream: boolean; // true requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IBoltzService_ISubscribeInvoices extends grpc.MethodDefinition { path: string; // "/boltzrpc.Boltz/SubscribeInvoices" requestStream: boolean; // false responseStream: boolean; // true requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IBoltzService_ISubscribeClaims extends grpc.MethodDefinition { path: string; // "/boltzrpc.Boltz/SubscribeClaims" requestStream: boolean; // false responseStream: boolean; // true requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IBoltzService_ISubscribeRefunds extends grpc.MethodDefinition { path: string; // "/boltzrpc.Boltz/SubscribeRefunds" requestStream: boolean; // false responseStream: boolean; // true requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IBoltzService_ISubscribeChannelBackups extends grpc.MethodDefinition { path: string; // "/boltzrpc.Boltz/SubscribeChannelBackups" requestStream: boolean; // false responseStream: boolean; // true requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } export const BoltzService: IBoltzService; export interface IBoltzServer { getInfo: grpc.handleUnaryCall; getBalance: grpc.handleUnaryCall; getTransaction: grpc.handleUnaryCall; broadcastTransaction: grpc.handleUnaryCall; getFeeEstimation: grpc.handleUnaryCall; newAddress: grpc.handleUnaryCall; sendCoins: grpc.handleUnaryCall; createSwap: grpc.handleUnaryCall; createReverseSwap: grpc.handleUnaryCall; listenOnAddress: grpc.handleUnaryCall; subscribeTransactions: grpc.handleServerStreamingCall; subscribeInvoices: grpc.handleServerStreamingCall; subscribeClaims: grpc.handleServerStreamingCall; subscribeRefunds: grpc.handleServerStreamingCall; subscribeChannelBackups: grpc.handleServerStreamingCall; } export interface IBoltzClient { getInfo(request: boltzrpc_pb.GetInfoRequest, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetInfoResponse) => void): grpc.ClientUnaryCall; getInfo(request: boltzrpc_pb.GetInfoRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetInfoResponse) => void): grpc.ClientUnaryCall; getInfo(request: boltzrpc_pb.GetInfoRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetInfoResponse) => void): grpc.ClientUnaryCall; getBalance(request: boltzrpc_pb.GetBalanceRequest, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetBalanceResponse) => void): grpc.ClientUnaryCall; getBalance(request: boltzrpc_pb.GetBalanceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetBalanceResponse) => void): grpc.ClientUnaryCall; getBalance(request: boltzrpc_pb.GetBalanceRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetBalanceResponse) => void): grpc.ClientUnaryCall; getTransaction(request: boltzrpc_pb.GetTransactionRequest, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetTransactionResponse) => void): grpc.ClientUnaryCall; getTransaction(request: boltzrpc_pb.GetTransactionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetTransactionResponse) => void): grpc.ClientUnaryCall; getTransaction(request: boltzrpc_pb.GetTransactionRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetTransactionResponse) => void): grpc.ClientUnaryCall; broadcastTransaction(request: boltzrpc_pb.BroadcastTransactionRequest, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.BroadcastTransactionResponse) => void): grpc.ClientUnaryCall; broadcastTransaction(request: boltzrpc_pb.BroadcastTransactionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.BroadcastTransactionResponse) => void): grpc.ClientUnaryCall; broadcastTransaction(request: boltzrpc_pb.BroadcastTransactionRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.BroadcastTransactionResponse) => void): grpc.ClientUnaryCall; getFeeEstimation(request: boltzrpc_pb.GetFeeEstimationRequest, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetFeeEstimationResponse) => void): grpc.ClientUnaryCall; getFeeEstimation(request: boltzrpc_pb.GetFeeEstimationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetFeeEstimationResponse) => void): grpc.ClientUnaryCall; getFeeEstimation(request: boltzrpc_pb.GetFeeEstimationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetFeeEstimationResponse) => void): grpc.ClientUnaryCall; newAddress(request: boltzrpc_pb.NewAddressRequest, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.NewAddressResponse) => void): grpc.ClientUnaryCall; newAddress(request: boltzrpc_pb.NewAddressRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.NewAddressResponse) => void): grpc.ClientUnaryCall; newAddress(request: boltzrpc_pb.NewAddressRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.NewAddressResponse) => void): grpc.ClientUnaryCall; sendCoins(request: boltzrpc_pb.SendCoinsRequest, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.SendCoinsResponse) => void): grpc.ClientUnaryCall; sendCoins(request: boltzrpc_pb.SendCoinsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.SendCoinsResponse) => void): grpc.ClientUnaryCall; sendCoins(request: boltzrpc_pb.SendCoinsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.SendCoinsResponse) => void): grpc.ClientUnaryCall; createSwap(request: boltzrpc_pb.CreateSwapRequest, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.CreateSwapResponse) => void): grpc.ClientUnaryCall; createSwap(request: boltzrpc_pb.CreateSwapRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.CreateSwapResponse) => void): grpc.ClientUnaryCall; createSwap(request: boltzrpc_pb.CreateSwapRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.CreateSwapResponse) => void): grpc.ClientUnaryCall; createReverseSwap(request: boltzrpc_pb.CreateReverseSwapRequest, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.CreateReverseSwapResponse) => void): grpc.ClientUnaryCall; createReverseSwap(request: boltzrpc_pb.CreateReverseSwapRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.CreateReverseSwapResponse) => void): grpc.ClientUnaryCall; createReverseSwap(request: boltzrpc_pb.CreateReverseSwapRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.CreateReverseSwapResponse) => void): grpc.ClientUnaryCall; listenOnAddress(request: boltzrpc_pb.ListenOnAddressRequest, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.ListenOnAddressResponse) => void): grpc.ClientUnaryCall; listenOnAddress(request: boltzrpc_pb.ListenOnAddressRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.ListenOnAddressResponse) => void): grpc.ClientUnaryCall; listenOnAddress(request: boltzrpc_pb.ListenOnAddressRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.ListenOnAddressResponse) => void): grpc.ClientUnaryCall; subscribeTransactions(request: boltzrpc_pb.SubscribeTransactionsRequest, options?: Partial): grpc.ClientReadableStream; subscribeTransactions(request: boltzrpc_pb.SubscribeTransactionsRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; subscribeInvoices(request: boltzrpc_pb.SubscribeInvoicesRequest, options?: Partial): grpc.ClientReadableStream; subscribeInvoices(request: boltzrpc_pb.SubscribeInvoicesRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; subscribeClaims(request: boltzrpc_pb.SubscribeClaimsRequest, options?: Partial): grpc.ClientReadableStream; subscribeClaims(request: boltzrpc_pb.SubscribeClaimsRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; subscribeRefunds(request: boltzrpc_pb.SubscribeRefundsRequest, options?: Partial): grpc.ClientReadableStream; subscribeRefunds(request: boltzrpc_pb.SubscribeRefundsRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; subscribeChannelBackups(request: boltzrpc_pb.SubscribeChannelBackupsRequest, options?: Partial): grpc.ClientReadableStream; subscribeChannelBackups(request: boltzrpc_pb.SubscribeChannelBackupsRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; } export class BoltzClient extends grpc.Client implements IBoltzClient { constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); public getInfo(request: boltzrpc_pb.GetInfoRequest, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetInfoResponse) => void): grpc.ClientUnaryCall; public getInfo(request: boltzrpc_pb.GetInfoRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetInfoResponse) => void): grpc.ClientUnaryCall; public getInfo(request: boltzrpc_pb.GetInfoRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetInfoResponse) => void): grpc.ClientUnaryCall; public getBalance(request: boltzrpc_pb.GetBalanceRequest, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetBalanceResponse) => void): grpc.ClientUnaryCall; public getBalance(request: boltzrpc_pb.GetBalanceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetBalanceResponse) => void): grpc.ClientUnaryCall; public getBalance(request: boltzrpc_pb.GetBalanceRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetBalanceResponse) => void): grpc.ClientUnaryCall; public getTransaction(request: boltzrpc_pb.GetTransactionRequest, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetTransactionResponse) => void): grpc.ClientUnaryCall; public getTransaction(request: boltzrpc_pb.GetTransactionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetTransactionResponse) => void): grpc.ClientUnaryCall; public getTransaction(request: boltzrpc_pb.GetTransactionRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetTransactionResponse) => void): grpc.ClientUnaryCall; public broadcastTransaction(request: boltzrpc_pb.BroadcastTransactionRequest, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.BroadcastTransactionResponse) => void): grpc.ClientUnaryCall; public broadcastTransaction(request: boltzrpc_pb.BroadcastTransactionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.BroadcastTransactionResponse) => void): grpc.ClientUnaryCall; public broadcastTransaction(request: boltzrpc_pb.BroadcastTransactionRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.BroadcastTransactionResponse) => void): grpc.ClientUnaryCall; public getFeeEstimation(request: boltzrpc_pb.GetFeeEstimationRequest, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetFeeEstimationResponse) => void): grpc.ClientUnaryCall; public getFeeEstimation(request: boltzrpc_pb.GetFeeEstimationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetFeeEstimationResponse) => void): grpc.ClientUnaryCall; public getFeeEstimation(request: boltzrpc_pb.GetFeeEstimationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.GetFeeEstimationResponse) => void): grpc.ClientUnaryCall; public newAddress(request: boltzrpc_pb.NewAddressRequest, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.NewAddressResponse) => void): grpc.ClientUnaryCall; public newAddress(request: boltzrpc_pb.NewAddressRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.NewAddressResponse) => void): grpc.ClientUnaryCall; public newAddress(request: boltzrpc_pb.NewAddressRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.NewAddressResponse) => void): grpc.ClientUnaryCall; public sendCoins(request: boltzrpc_pb.SendCoinsRequest, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.SendCoinsResponse) => void): grpc.ClientUnaryCall; public sendCoins(request: boltzrpc_pb.SendCoinsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.SendCoinsResponse) => void): grpc.ClientUnaryCall; public sendCoins(request: boltzrpc_pb.SendCoinsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.SendCoinsResponse) => void): grpc.ClientUnaryCall; public createSwap(request: boltzrpc_pb.CreateSwapRequest, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.CreateSwapResponse) => void): grpc.ClientUnaryCall; public createSwap(request: boltzrpc_pb.CreateSwapRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.CreateSwapResponse) => void): grpc.ClientUnaryCall; public createSwap(request: boltzrpc_pb.CreateSwapRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.CreateSwapResponse) => void): grpc.ClientUnaryCall; public createReverseSwap(request: boltzrpc_pb.CreateReverseSwapRequest, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.CreateReverseSwapResponse) => void): grpc.ClientUnaryCall; public createReverseSwap(request: boltzrpc_pb.CreateReverseSwapRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.CreateReverseSwapResponse) => void): grpc.ClientUnaryCall; public createReverseSwap(request: boltzrpc_pb.CreateReverseSwapRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.CreateReverseSwapResponse) => void): grpc.ClientUnaryCall; public listenOnAddress(request: boltzrpc_pb.ListenOnAddressRequest, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.ListenOnAddressResponse) => void): grpc.ClientUnaryCall; public listenOnAddress(request: boltzrpc_pb.ListenOnAddressRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.ListenOnAddressResponse) => void): grpc.ClientUnaryCall; public listenOnAddress(request: boltzrpc_pb.ListenOnAddressRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: boltzrpc_pb.ListenOnAddressResponse) => void): grpc.ClientUnaryCall; public subscribeTransactions(request: boltzrpc_pb.SubscribeTransactionsRequest, options?: Partial): grpc.ClientReadableStream; public subscribeTransactions(request: boltzrpc_pb.SubscribeTransactionsRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; public subscribeInvoices(request: boltzrpc_pb.SubscribeInvoicesRequest, options?: Partial): grpc.ClientReadableStream; public subscribeInvoices(request: boltzrpc_pb.SubscribeInvoicesRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; public subscribeClaims(request: boltzrpc_pb.SubscribeClaimsRequest, options?: Partial): grpc.ClientReadableStream; public subscribeClaims(request: boltzrpc_pb.SubscribeClaimsRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; public subscribeRefunds(request: boltzrpc_pb.SubscribeRefundsRequest, options?: Partial): grpc.ClientReadableStream; public subscribeRefunds(request: boltzrpc_pb.SubscribeRefundsRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; public subscribeChannelBackups(request: boltzrpc_pb.SubscribeChannelBackupsRequest, options?: Partial): grpc.ClientReadableStream; public subscribeChannelBackups(request: boltzrpc_pb.SubscribeChannelBackupsRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; }