/wallet/getchainparameters - Tron
Example code for the getchainparameters REST method. Complete guide on how to use getchainparameters REST method in GetBlock Web3 documentation.
Parameters
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/wallet/getchainparameters' \
--header 'Content-Type: application/json' \
--data-raw '{}'const response = await fetch(
'https://go.getblock.io/<ACCESS-TOKEN>/wallet/getchainparameters',
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({})
}
);
console.log(await response.json());import requests
response = requests.post(
'https://go.getblock.io/<ACCESS-TOKEN>/wallet/getchainparameters',
headers={'Content-Type': 'application/json'},
json={}
)
print(response.json())Response
{
"chainParameter": [
{
"key": "getEnergyFee",
"value": 210
},
{
"key": "getTransactionFee",
"value": 1000
},
{
"key": "getCreateAccountFee",
"value": 100000
}
]
}Response Parameters
Field
Type
Description
Use Cases
Error Handling
HTTP Status
Message
Description
Was this helpful?