跳转到主要内容
GET
/
api
/
v1
/
networks
获取启用链列表
curl --request GET \
  --url https://api.example.com/api/v1/networks
{
  "code": 0,
  "msg": "ok",
  "data": {
    "mainnets": [
      {
        "chainId": 8453,
        "name": "Base",
        "nativeSymbol": "ETH",
        "rpcUrl": "https://mainnet.base.org",
        "explorerUrl": "https://basescan.org",
        "faucetUrl": "",
        "isTestnet": false,
        "enabled": true
      }
    ],
    "testnets": [
      {
        "chainId": 11155111,
        "name": "Sepolia",
        "nativeSymbol": "ETH",
        "rpcUrl": "https://rpc.sepolia.org",
        "explorerUrl": "https://sepolia.etherscan.io",
        "faucetUrl": "https://faucet.quicknode.com/ethereum/sepolia",
        "isTestnet": true,
        "enabled": true
      }
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.nexfi.robert.dpdns.org/llms.txt

Use this file to discover all available pages before exploring further.

响应

200 - application/json

成功返回链列表

统一响应包裹结构。

code
integer
必填

业务状态码,0 表示成功。

示例:

0

msg
string
必填

可读返回消息。

示例:

"ok"

data
object