corecontracts
Get the chain info
Changed onIf 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
- Authnone declared
Path parameters
chainIDstring string required
ChainID (Bech32)
Query parameters
blockstring string
Block index or trie root
Response
The chain info
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
queryrequest parameterblock
- info
- 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
- breaking