abcInfo

How to use it

// Importing Tatum SDK for Beacon Chain
import { TatumSDK, Network, Bnb } from '@tatumio/tatum';

// Initializing SDK for Beacon Chain network
const tatum = await TatumSDK.init<Bnb>({ network: Network.BNB });

// Using the 'abciInfo' method to get information about the ABCI (Application Blockchain Interface) application
const abciInfoData = await tatum.rpc.abciInfo();

console.log(abciInfoData);

// Destroying the Tatum SDK instance. This is necessary to stop any background jobs that the SDK may have started.
await tatum.destroy();

Overview

The abciInfo method is utilized to retrieve information about the BNB Beacon Chain application.

Return Object

The abciInfo method typically returns an object containing the details about the application. While the exact structure might vary, the return object may include the following fields:

  • version (string): The version of the application.

  • lastBlockHeight (string number): The height of the last block processed.

  • lastBlockAppHash (string number): The hash of the last block processed.

(Note: The exact fields in the return object might vary based on the BNB Beacon Chain's implementation and version.)

Last updated

ยฉ Tatum Technology, LLC