corecontracts

Get the chain info

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

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

Changed in 9 of the 50 revisions of this API.6311

    • added the new optional query request parameter block

      new-optional-request-parameter

  • c4ebd9663bfe312See the full diff
    • removed the required property from the response with the status

      response-required-property-removed

    • removed the required property from the response with the status

      response-required-property-removed

    • removed the required property from the response with the status

      response-required-property-removed

    • removed the optional property from the response with the status

      response-optional-property-removed

    • added the required property to the response with the status

      response-required-property-added

    • added the required property to the response with the status

      response-required-property-added

    • removed the optional property from the response with the status

      response-optional-property-removed

    This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the optional property to the response with the status

      response-optional-property-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the optional property to the response with the status

      response-optional-property-added

  • 55ceaf76774c22See the full diff
    • removed the required property from the response with the status

      response-required-property-removed

    • removed the required property from the response with the status

      response-required-property-removed

    • added the required property to the response with the status

      response-required-property-added

    • added the required property to the response with the status

      response-required-property-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 8ff59d94a1ae13See the full diff
    • removed the optional property from the response with the status

      response-optional-property-removed

    • added the required property to the response with the status

      response-required-property-added

    • added the required property to the response with the status

      response-required-property-added

    • added the required property to the response with the status

      response-required-property-added

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 20 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog