UNPKG

@emeraldpay/api-node

Version:
16 lines (15 loc) 811 B
import { ConnectionListener, address } from '@emeraldpay/api'; import { ChannelCredentials } from '@grpc/grpc-js'; import { NativeChannel } from '../channel'; import { AddressClient as ProtoAddressClient } from '../generated/address_grpc_pb'; export declare class AddressClient { readonly client: ProtoAddressClient; readonly channel: NativeChannel; readonly credentials: ChannelCredentials; readonly retries: number; private readonly convert; constructor(hostname: string, credentials: ChannelCredentials, agents: string[], retries?: number); setConnectionListener(listener: ConnectionListener): void; describe(request: address.DescribeRequest): Promise<address.DescribeResponse>; describeXpub(request: address.DescribeXpubRequest): Promise<address.DescribeXpubResponse>; }