Docs

wallet/getchainparameters - Get TRON Chain Para...

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

Get current blockchain parameters including fees, voting settings, and resource configurations. This endpoint returns the governance-controlled parameters that define TRON's fee structure, resource limits, and feature flags.

Overview

TRON's chain parameters are set through Super Representative voting and governance proposals. They control critical aspects of the network including energy prices, bandwidth allocation, account creation fees, and TVM feature enablement. Applications that interact with TRON should query these parameters to calculate accurate transaction costs and verify network capabilities.

Fee planning for payment integrators

If you are building a payment system on TRON (especially for USDT TRC-20 transfers), the getEnergyFee and getTransactionFee parameters are essential for accurate cost estimation. Combine this with wallet/estimateenergy for precise per-transaction fee forecasting.

Endpoint

Text
POST /wallet/getchainparameters

Request Parameters

Request

This method accepts no parameters.

Response Body

Response
chainParameterarray

Array of chain parameter objects with `key` and `value` fields.

Error Responses

Errors
Error 1
Error 2
Error 3

Implementation Examples

Bash
# Get chain parameters
curl -X POST https://api-tron-mainnet.n.dwellir.com/YOUR_API_KEY/wallet/getchainparameters \
  -H "Content-Type: application/json" \
  -d '{}'

# Parse specific parameter (using jq)
curl -X POST https://api-tron-mainnet.n.dwellir.com/YOUR_API_KEY/wallet/getchainparameters \
  -H "Content-Type: application/json" \
  -d '{}' | jq '.chainParameter[] | select(.key == "getEnergyFee")'

Use Cases

  • Fee Calculation: Calculate transaction costs before execution
  • Resource Planning: Understand energy and bandwidth pricing
  • Network Monitoring: Track parameter changes over time
  • DApp Configuration: Adjust application based on network settings
  • Governance Tracking: Monitor voting and proposal parameters