getchainparameters

How to use it

// yarn add @tatumio/tatum

import { TatumSDK, Tron, Network } from '@tatumio/tatum'

const tatum = await TatumSDK.init<Tron>({network: Network.TRON})

const chainParameters = await tatum.rpc.getChainParameters()

await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs

Overview

The getChainParameters method retrieves all parameters that the blockchain committee can set. This method is useful for getting detailed information about the blockchain's configurable parameters.

Parameters

This method doesn't require any parameters.

Return Object

The return object is an array of ChainParameters objects. Each ChainParameters object contains the following parameters:

  • chainParameter (array)

    • key (string): The parameter name.

    • value (integer): The parameter value.

HTTP Request Example

{]

HTTP Response Example

{
  "chainParameter": [
    {
      "key": "getMaintenanceTimeInterval",
      "value": 600000
    },
    {
      "key": "getAccountUpgradeCost",
      "value": 9999000000
    },
    {
      "key": "getCreateAccountFee",
      "value": 100000
    },
    {
      "key": "getTransactionFee",
      "value": 1000
    },
    {
      "key": "getAssetIssueFee",
      "value": 1024000000
    },
    {
      "key": "getWitnessPayPerBlock",
      "value": 100000000000
    },
    {
      "key": "getWitnessStandbyAllowance",
      "value": 100000000
    },
    {
      "key": "getCreateNewAccountFeeInSystemContract",
      "value": 1000000
    },
    {
      "key": "getCreateNewAccountBandwidthRate",
      "value": 1
    },
    {
      "key": "getAllowCreationOfContracts",
      "value": 1