@emeraldpay/api-node
Version:
Node client for Emerald gRPC APIs
28 lines (27 loc) • 1.29 kB
TypeScript
import { SecretToken } from "@emeraldpay/api";
import { ChannelCredentials } from '@grpc/grpc-js';
import { AddressClient } from './wrapped/AddressClient';
import { AuthClient } from "./wrapped/Auth";
import { BlockchainClient } from './wrapped/BlockchainClient';
import { MarketClient } from './wrapped/MarketClient';
import { MonitoringClient } from './wrapped/MonitoringClient';
import { SierraProjectClient } from "./wrapped/SierraProjectClient";
import { TokenClient } from './wrapped/TokenClient';
import { TransactionClient } from './wrapped/TransactionClient';
export declare class EmeraldApi {
private readonly agents;
private readonly hostname;
private readonly credentials;
constructor(hostname: string, token: SecretToken, credentials?: ChannelCredentials);
static devApi(token?: SecretToken | undefined, credentials?: ChannelCredentials): EmeraldApi;
static localApi(port?: number, credentials?: ChannelCredentials): EmeraldApi;
static productionApi(token: SecretToken): EmeraldApi;
address(): AddressClient;
blockchain(): BlockchainClient;
market(): MarketClient;
monitoring(): MonitoringClient;
token(): TokenClient;
transaction(): TransactionClient;
auth(): AuthClient;
sierraProject(): SierraProjectClient;
}