corecontracts

Get the chain info

Changed on

If you are using the common API functions, you most likely rather want to use '/v1/chains/:chainID' to get information about a chain.

get/v1/chains/{chainID}/core/governance/chaininfo

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /v1/chains/{chainID}/core/governance/chaininfo
  • Auth
    none declared

Path parameters

chainIDstring string required

ChainID (Bech32)

Query parameters

blockstring string

Block index or trie root

Response

The chain info

chainIDstring string required

ChainID (Bech32-encoded).

chainOwnerIdstring string required

The chain owner address (Bech32-encoded).

publicURLstring string required

The fully qualified public url leading to the chains metadata

Example response

{
  "chainOwnerId": "chainOwnerId",
  "metadata": {
    "website": "website",
    "evmWebSocketURL": "evmWebSocketURL",
    "name": "name",
    "description": "description",
    "evmJsonRpcURL": "evmJsonRpcURL"
  },
  "gasLimits": {
    "maxGasExternalViewCall": 6,
    "minGasPerRequest": 5,
    "maxGasPerBlock": 1,
    "maxGasPerRequest": 5
  },
  "chainID": "chainID",
  "publicURL": "publicURL",
  "gasFeePolicy": {
    "gasPerToken": {
      "a": 0,
      "b": 0
    },
    "validatorFeeShare": 1,
    "evmGasRatio": {
      "a": 0,
      "b": 0
    }
  }
}

Changes

    • info

      added the new optional query request parameter block

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status