@digitalasset/daml-ledger
Version:
DAML Ledger API Node.js bindings
18 lines (17 loc) • 683 B
TypeScript
import { Callback } from "../util/Callback";
import { ClientCancellableCall } from "../call/ClientCancellableCall";
import { GetLedgerIdentityResponse } from "../model/GetLedgerIdentityResponse";
/**
* Allows clients to verify that the server they are communicating with
* exposes the ledger they wish to operate on.
*
* Note that every ledger has a unique id.
*/
export interface LedgerIdentityClient {
/**
* Clients may call this RPC to return the identifier of the ledger they
* are connected to.
*/
getLedgerIdentity(): Promise<GetLedgerIdentityResponse>;
getLedgerIdentity(callback: Callback<GetLedgerIdentityResponse>): ClientCancellableCall;
}