Skip to content
Cross-chain Metaspace Interface

Query All Chain InformationTry API

POST chain_queryInfo (Query All Chain Information)

description:Shows all public chains currently imported.

Parameters

Begin startnumber

Len maximumreturn value

Sliceno 1 cross-chainmetaspacefixed toNo. 1space

Example Code
Request
{
"jsonrpc": "3.0",
"method": "chain_queryInfo",
"params": [
  "pubChainQuery",
  "op=queryDex&subcode=ContractQueryChain&begin=0&len=100&sliceno=1",
  "encryp=none"
],
"id": "1"
}
Response
{
 "jsonrpc":  "3.0",
 "id":  "8ea8f7248e93f4c3087ab78a",
 "result": {
   "ret":  "0",
   "err":  "",
   "content": {
     "info": {
       "Addrs": [
         "0xcd8ae719d79026fb94c4732736840f71b1e78818",
         "0x3725ad4a821347dfb6cf5c7f655722e907576e98"
      ],
       "Names": [
         "TC",
         "ETH"
      ],
       "Symbols": [
         "TC",
         "ETH"
      ],
       "logos": [
         "https://ip/tc.pnp",
         "https://ip/eth.pnp",
        
      ]
    }
  }
}

On this page