Skip to content

Get Web3 chain data by chain ID

Request

Retrieve comprehensive chain data including authentication JWT token valid for 30 days. Supports both mainnet and testnet chains.

Security
projectKey
Path
chainIdstringrequired
curl -i -X GET \
  'https://docs.pers.ninja/_mock/swagger/chains/{chainId}' \
  -H 'x-project-key: YOUR_API_KEY_HERE'

Responses

Bodyapplication/json
namestringrequired

Name of the chain

shortNamestring

Short name of the chain

chainstring

Chain name

networkstring

Network name

chainIdnumberrequired

Chain ID

explorerUrlstring

explorer URL

networkIdnumber

Network ID

rpcUrlstringrequired

RPC URL

wsUrlstring

WebSocket URL

authHeaderstring

Authorization header

chainTypestringrequired

Chain type

Response
{ "name": "string", "shortName": "string", "chain": "string", "network": "string", "chainId": 0, "explorerUrl": "string", "networkId": 0, "rpcUrl": "string", "wsUrl": "string", "authHeader": "string", "chainType": "string" }