Algorand RPC
Archive Method
Only on the full archive nodes. Complex queries might take longer and incur additional cost
How to use it
// Import required libraries and modules from Tatum SDK
import { TatumSDK, AlgorandAlgod, Network } from '@tatumio/tatum'
// Initialize the Tatum SDK for Algorand
const tatum = await TatumSDK.init<AlgorandAlgod>({ network: Network.ALGORAND_ALGOD })
// Retrieve health check status for the Algorand node
const isHealthy = await tatum.rpc.isHealthy()
// Log the health check status
console.log('Algorand Health Check:', isHealthy)
// Always destroy the Tatum SDK instance when done to stop any background processes
await tatum.destroy()
Overview
The isHealthy
method allows you to check the health of the Algorand node.
Example Use Cases
- Health Monitoring: Developers can use this method to regularly monitor the health status of the Algorand node and ensure that it is functioning properly.
Request Parameters
The isHealthy
method does not require any parameters.
Return Object
The method returns an empty object with a response code indicating the health status of the Algorand node.