Get the chain info
GET/v1/chain/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
Query Parameters
block string
Block index or trie root
Responses
- 200
- 401
The chain info
- application/json
- Schema
- Example (from schema)
Schema
chainAdmin stringrequired
The chain admin address (Hex Address).
chainID stringrequired
ChainID (Hex Address).
gasFeePolicy FeePolicyrequired
evmGasRatio Ratio32required
a int32required
b int32required
gasPerToken Ratio32required
a int32required
b int32required
validatorFeeShare int32required
The validator fee share.
gasLimits Limitsrequired
maxGasExternalViewCall int64required
The maximum gas per external view call
maxGasPerBlock int64required
The maximum gas per block
maxGasPerRequest int64required
The maximum gas per request
minGasPerRequest int64required
The minimum gas per request
metadata GovPublicChainMetadatarequired
description stringrequired
The description of the chain.
evmJsonRpcURL stringrequired
The EVM json rpc url
evmWebSocketURL stringrequired
The EVM websocket url)
name stringrequired
The name of the chain
website stringrequired
The official website of the chain.
publicURL stringrequired
The fully qualified public url leading to the chains metadata
{
"chainAdmin": "chainAdmin",
"metadata": {
"website": "website",
"evmWebSocketURL": "evmWebSocketURL",
"name": "name",
"description": "description",
"evmJsonRpcURL": "evmJsonRpcURL"
},
"gasLimits": {
"maxGasExternalViewCall": 5,
"minGasPerRequest": 9,
"maxGasPerBlock": 2,
"maxGasPerRequest": 7
},
"chainID": "chainID",
"publicURL": "publicURL",
"gasFeePolicy": {
"gasPerToken": {
"a": 0,
"b": 0
},
"validatorFeeShare": 5,
"evmGasRatio": {
"a": 0,
"b": 0
}
}
}
Unauthorized (Wrong permissions, missing token)
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
missingPermission stringrequired
{
"error": "error",
"missingPermission": "missingPermission"
}
Loading...