@firmachain/firma-js
Version:
The Official FirmaChain Javascript SDK written in Typescript
43 lines (42 loc) • 1.09 kB
TypeScript
export interface ChainSyncInfo {
latest_block_hash: string;
latest_app_hash: string;
latest_block_height: string;
latest_block_time: string;
earliest_block_hash: string;
earliest_app_hash: string;
earliest_block_height: string;
earliest_block_time: string;
catching_up: boolean;
}
export interface TransactionEvent {
type: string;
attributes: {
key: string;
value: string;
index: boolean;
}[];
}
export interface TransactionHash {
hash: string;
height: string;
index: number;
tx_result: {
code: number;
data: string;
log: string;
info: string;
gas_wanted: string;
gas_used: string;
events: TransactionEvent[];
codespace: string;
};
tx: string;
}
export declare class TendermintQueryClient {
private readonly axios;
constructor(baseUrl: string);
queryEstimateGas(hexTx: string): Promise<number>;
queryChainSyncInfo(): Promise<ChainSyncInfo>;
queryTransactionHash(txHash: string): Promise<TransactionHash>;
}