跳转到内容

blockreq_listEndpoints

此内容尚不支持你的语言。

Returns all endpoints associated with your account, including API keys, URLs, usage statistics, and status.

None

FieldTypeDescription
totalintegerTotal number of endpoints
endpointsarrayList of endpoints
endpoints[].endpointIdstringUnique endpoint identifier
endpoints[].namestringEndpoint name
endpoints[].chainstringNetwork slug (e.g., ethereum)
endpoints[].statusstringactive or inactive
endpoints[].apiKeystringAPI key for this endpoint
endpoints[].httpsUrlstringHTTPS endpoint URL
endpoints[].wssUrlstringWebSocket endpoint URL
endpoints[].requestCountintegerTotal requests made
endpoints[].ruConsumedintegerTotal RU consumed
endpoints[].createdAtintegerUnix timestamp of creation
{
"jsonrpc": "2.0",
"method": "blockreq_listEndpoints",
"params": [],
"id": 1
}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"total": 2,
"endpoints": [
{
"endpointId": "abc-123",
"name": "ethereum-endpoint-abc",
"chain": "ethereum",
"status": "active",
"apiKey": "a1b2c3d4e5f6...",
"httpsUrl": "https://eth-mainnet.blockreq.com/v1/rpc/a1b2c3d4e5f6...",
"wssUrl": "wss://eth-mainnet.blockreq.com/v1/rpc/a1b2c3d4e5f6...",
"requestCount": 15000,
"ruConsumed": 450000,
"createdAt": 1708300800
}
]
}
}
Terminal window
curl -X POST https://eth-mainnet.blockreq.com/v1/rpc/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"blockreq_listEndpoints","params":[],"id":1}'