@firmachain/firma-js
Version:
The Official FirmaChain Javascript SDK written in Typescript
28 lines (27 loc) • 1.12 kB
TypeScript
import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
import { Account } from "./accounts";
import { StargateClient } from "./stargateclient";
export interface SignerData {
readonly account_number: string;
readonly sequence: string;
readonly chain_id: string;
}
export interface SequenceResponse {
readonly account_number: string;
readonly sequence: string;
}
export declare class LedgerSigningStargateClient extends StargateClient {
private chainId;
private static _endpoint;
static connectWithSigner(endpoint: string): Promise<LedgerSigningStargateClient>;
protected constructor(tmClient: Tendermint34Client);
getSignerData(address: string): Promise<SignerData>;
getChainId(): Promise<string>;
/**
* Takes a bech32 encoded address and returns the data part. The prefix is ignored and discarded.
* This is called AccAddress in Cosmos SDK, which is basically an alias for raw binary data.
* The result is typically 20 bytes long but not restricted to that.
*/
private toAccAddress;
getAccount(address: string): Promise<Account | undefined>;
}