Docs
Docs
Home
Getting Started
Agent Tooling
CLI
Supported Chains
Acala
Aptos
Arbitrum
Arc
Asset Hub
Astar
Avalanche
Base
Berachain
Bifrost
Binance Smart Chain
Bittensor
Blast
Boba Network
Bridge Hub
Celo
Centrifuge
Chiliz
Cronos
Enjin
Ethereum
Etherlink
Flow EVM Gateway
Gnosis
Hydration
Hyperliquid
Immutable
Ink
IoTeX
Kusama
Linea
LISK
Manta Atlantic
Manta Pacific
Mantle
MegaETH
Monad
Movement
Neuroweb
opBNB
Optimism
Plasma
Polkadot
Polygon
Pulsechain
Robinhood
Ronin
Scroll
Sonic
Starknet
Taiko
Tempo
Sui
TRON
Unichain
Viction
World Chain
XDC Network
XX Network
Zetachain
zkSync Era
Zora
Supported ChainsTRONTRON HTTP API

wallet/getnodeinfo - Get TRON Node Information

Get comprehensive TRON node information including version, block height, configuration, and peer connections via Dwellir's enterprise RPC endpoint.

TRON RPC endpoint: endpoint URLs, plans and pricing.

Real-Time Node Monitoring

Dwellir's TRON infrastructure provides instant node status with version info, sync state, and network connectivity. Monitor node health and configuration for optimal integration.

Access node information

Retrieve detailed information about the connected TRON node including software version, network configuration, current block height, and peer connections.

Use Cases

wallet/getnodeinfo is crucial for:

  • Health Monitoring - Check node status and sync state
  • Version Tracking - Verify node software version
  • Network Analysis - Monitor peer connections
  • Configuration Audit - Review node settings
  • Debugging - Troubleshoot connection issues
JSON-RPC request
{}

Implementation Examples

Common Use Cases

1. Health Check Endpoint

JavaScript
async function healthCheck() {
  try {
    const info = await getNodeInfo();
    const blockInfo = parseBlockString(info.block);
    const solidityInfo = parseBlockString(info.solidityBlock);
    
    const healthy = 
      info.currentConnectCount > 5 &&
      (blockInfo.number - solidityInfo.number) < 100;
    
    return {
      status: healthy ? 'healthy' : 'degraded',
      details: {
        peers: info.currentConnectCount,
        syncLag: blockInfo.number - solidityInfo.number,
        version: info.configNodeInfo?.codeVersion
      }
    };
  } catch (error) {
    return {
      status: 'unhealthy',
      error: error.message
    };
  }
}

2. Version Compatibility Check

JavaScript
async function checkCompatibility(requiredVersion) {
  const info = await getNodeInfo();
  const nodeVersion = info.configNodeInfo?.codeVersion || '0.0.0';
  
  return {
    compatible: compareVersions(nodeVersion, requiredVersion) >= 0,
    nodeVersion,
    requiredVersion
  };
}

3. Network Statistics

JavaScript
async function getNetworkStats() {
  const info = await getNodeInfo();
  
  // Analyze peer versions
  const versionStats = {};
  info.peerList?.forEach(peer => {
    const version = peer.nodeInfo?.codeVersion || 'Unknown';
    versionStats[version] = (versionStats[version] || 0) + 1;
  });
  
  return {
    totalPeers: info.currentConnectCount,
    activePeers: info.activeConnectCount,
    passivePeers: info.passiveConnectCount,
    versionDistribution: versionStats,
    networkTraffic: formatBytes(info.totalFlow)
  };
}

Best Practices

  1. Cache Results - Node info can be cached for 30-60 seconds
  2. Monitor Regularly - Check node health every 1-5 minutes
  3. Alert Thresholds - Set alerts for low peers or high sync lag
  4. Version Tracking - Monitor node version for required updates
  5. Fallback Nodes - Have backup nodes ready if health degrades

Related Methods

  • wallet/getchainparameters - Get chain configuration
  • wallet/getnowblock - Get latest block
  • wallet/listwitnesses - Get witness list

Need help? Contact support or visit our TRON documentation.

TRC20 Transfers

Complete guide to TRC20 token transfers on TRON - from USDT to custom tokens. Learn balance checking, approvals, transfers, and error handling with Dwellir RPC.

wallet/getchainparameters

Get current TRON blockchain parameters including fees, voting settings, and resource costs via Dwellir's optimized RPC endpoint.

On this page

Use CasesImplementation ExamplesCommon Use Cases1. Health Check Endpoint2. Version Compatibility Check3. Network StatisticsBest PracticesRelated Methods