Hierarchy

  • default
    • ChainRestTendermintApi

Methods

  • Fetches latest block.

    Returns Promise<{
        header: {
            app_hash: string;
            chain_id: string;
            consensus_hash: string;
            data_hash: string;
            evidence_hash: string;
            height: string;
            last_block_id: {
                hash: string;
                part_set_header: {
                    hash: string;
                    total: 0;
                };
            };
            last_commit_hash: string;
            last_results_hash: string;
            next_validators_hash: string;
            proposer_address: string;
            time: Date;
            validators_hash: string;
            version: {
                app: string;
                block: string;
            };
        };
    }>

  • Fetches node info.

    Returns Promise<{
        applicationVersion: {
            app_name: string;
            build_deps: [{
                path: string;
                sum: string;
                version: string;
            }];
            build_tags: string;
            cosmos_sdk_version: string;
            git_commit: string;
            go_version: string;
            name: string;
            version: string;
        };
        nodeInfo: {
            channels: string;
            default_node_id: string;
            listen_addr: string;
            moniker: string;
            network: string;
            other: {
                rpc_address: string;
                tx_index: string;
            };
            protocol_version: {
                app: string;
                block: string;
                p2p: string;
            };
            version: string;
        };
    }>

Generated using TypeDoc