Get the chain info
GET//v1/chains/:chainID/core/governance/chaininfo
If you are using the common API functions, you most likely rather want to use '/v1/chains/:chainID' to get information about a chain.
Request
Path Parameters
chainID stringrequired
ChainID (Bech32)
Query Parameters
block string
Block index or trie root
Responses
- 200
- 401
The chain info
- application/json
- Schema
- Example (from schema)
Schema
chainID stringrequired
ChainID (Bech32-encoded).
chainOwnerId stringrequired
The chain owner address (Bech32-encoded).
gasFeePolicy FeePolicyrequired
gasLimits Limitsrequired
metadata GovPublicChainMetadatarequired
publicURL stringrequired
The fully qualified public url leading to the chains metadata
{
"chainOwnerId": "chainOwnerId",
"metadata": {
"website": "website",
"evmWebSocketURL": "evmWebSocketURL",
"name": "name",
"description": "description",
"evmJsonRpcURL": "evmJsonRpcURL"
},
"gasLimits": {
"maxGasExternalViewCall": 5,
"minGasPerRequest": 7,
"maxGasPerBlock": 5,
"maxGasPerRequest": 2
},
"chainID": "chainID",
"publicURL": "publicURL",
"gasFeePolicy": {
"gasPerToken": {
"a": 0,
"b": 0
},
"validatorFeeShare": 0,
"evmGasRatio": {
"a": 0,
"b": 0
}
}
}
Unauthorized (Wrong permissions, missing token)
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
missingPermission stringrequired
{
"error": "string",
"missingPermission": "string"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET '/v1/chains/:chainID/core/governance/chaininfo' \
-H 'Accept: application/json'
ResponseClear