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
POST /wallet/getchainparametersRequest Parameters
This method accepts no parameters.
Response Body
Array of chain parameter objects with `key` and `value` fields.
Error Responses
Implementation Examples
# 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
Related Methods
- wallet/getaccountresource - Get account resources
- wallet/getnodeinfo - Get node information
- wallet/estimateenergy - Estimate energy consumption
- eth_gasPrice - EVM-compatible gas price (derived from energy price)
wallet/getnodeinfo
Get comprehensive TRON node information including version, block height, configuration, and peer connections via Dwellir's enterprise RPC endpoint.
eth_blockNumber
Get the current block height on TRON. Essential for syncing dApps, monitoring transaction confirmations, and blockchain state tracking.