Class ChainRestTendermintApi
Methods
fetchLatestBlock
- fetchLatestBlock(): 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;
};
};
}>
-
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;
};
};
}>
fetchNodeInfo
- fetchNodeInfo(): 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;
};
}>
-
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;
};
}>
Fetches latest block.