- 最新动态
- 产品介绍
- 快速入门
- 用户指南
- 质押指南
-
开发指南
-
以太坊Ethereum节点引擎
- 以太坊Ethereum介绍
- JSON-RPC API请求示例
- 应用程序开发介绍
- 智能合约开发介绍
-
以太坊API列表
- 专享版
-
共享版
- eth_blocknumber
- eth_getBlockByNumber
- eth_getUncleByBlockNumberAndIndex
- eth_getUncleByBlockHashAndIndex
- eth_getUncleCountByBlockNumber
- eth_getUncleCountByBlockHash
- eth_getBlockByHash
- eth_getTransactionByHash
- eth_getTransactionCount
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_getTransactionReceipt
- eth_sendRawTransaction
- eth_call
- eth_createAccessList
- eth_estimateGas
- eth_feeHistory
- eth_maxPriorityFeePerGas
- eth_gasPrice
- eth_getBalance
- eth_subscribe
- eth_unsubscribe
- eth_getStorageAt
- eth_getCode
- eth_getProof
- eth_getLogs
- eth_getFilterChanges
- eth_getFilterLogs
- eth_newBlockFilter
- eth_newFilter
- eth_newPendingTransactionFilter
- eth_uninstallFilter
- eth_chainId
- web3_sha3
- web3_clientVersion
- net_version
- net_listening
- 波场Tron节点引擎
-
Polygon PoS
- Polygon PoS介绍
- HTTP请求示例
- WebSocket请求示例
-
Polygon PoS API列表
- 专享版
-
共享版
-
Ethereum JSON-RPC API
- eth_blocknumber
- eth_getBlockByNumber
- eth_getUncleByBlockNumberAndIndex
- eth_getUncleByBlockHashAndIndex
- eth_getUncleCountByBlockNumber
- eth_getUncleCountByBlockHash
- eth_getBlockByHash
- eth_getTransactionByHash
- eth_getTransactionCount
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_getTransactionReceiptsByBlock
- eth_getTransactionReceipt
- eth_sendRawTransaction
- eth_call
- eth_createAccessList
- eth_estimateGas
- eth_feeHistory
- eth_maxPriorityFeePerGas
- eth_gasPrice
- eth_getBalance
- eth_getRootHash
- eth_subscribe
- eth_unsubscribe
- eth_getStorageAt
- eth_accounts
- eth_getCode
- eth_getProof
- eth_getLogs
- eth_getFilterChanges
- eth_getFilterLogs
- eth_newBlockFilter
- eth_newFilter
- eth_newPendingTransactionFilter
- eth_uninstallFilter
- eth_chainId
- web3_sha3
- web3_clientVersion
- Polygon JSON-RPC API
-
Ethereum JSON-RPC API
-
Arbitrum
- Arbitrum介绍
- HTTP请求示例
- WebSocket请求示例
-
Arbitrum API列表
-
共享版
-
Ethereum JSON-RPC API
- eth_blocknumber
- eth_getBlockByNumber
- eth_getUncleByBlockNumberAndIndex
- eth_getUncleByBlockHashAndIndex
- eth_getUncleCountByBlockNumber
- eth_getUncleCountByBlockHash
- eth_getBlockByHash
- eth_getTransactionByHash
- eth_getTransactionCount
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_syncing
- eth_getTransactionReceipt
- eth_sendRawTransaction
- eth_call
- eth_createAccessList
- eth_estimateGas
- eth_feeHistory
- eth_maxPriorityFeePerGas
- eth_gasPrice
- eth_getBalance
- eth_subscribe
- eth_unsubscribe
- eth_getStorageAt
- eth_accounts
- eth_getCode
- eth_getProof
- eth_getLogs
- eth_getFilterChanges
- eth_getFilterLogs
- eth_newBlockFilter
- eth_newFilter
- eth_newPendingTransactionFilter
- eth_uninstallFilter
- eth_chainId
- web3_sha3
- web3_clientVersion
-
Ethereum JSON-RPC API
-
共享版
-
BNB Smart Chain
- BNB Smart Chain介绍
- HTTP请求示例
- WebSocket请求示例
-
BNB Smart Chain API列表
- 专享版
-
共享版
- eth_blocknumber
- eth_getBlockByNumber
- eth_hashrate
- eth_getUncleCountByBlockNumber
- eth_getUncleCountByBlockHash
- eth_getBlockByHash
- eth_getTransactionByHash
- eth_getTransactionCount
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_syncing
- eth_getTransactionReceipt
- eth_sendRawTransaction
- eth_call
- eth_mining
- eth_estimateGas
- eth_feeHistory
- eth_maxPriorityFeePerGas
- eth_gasPrice
- eth_getBalance
- eth_subscribe
- eth_unsubscribe
- eth_getStorageAt
- eth_accounts
- eth_getCode
- eth_getProof
- eth_getLogs
- eth_getFilterChanges
- eth_getFilterLogs
- eth_newBlockFilter
- eth_newFilter
- eth_newPendingTransactionFilter
- eth_uninstallFilter
- eth_chainId
- web3_sha3
- web3_clientVersion
- txpool_status
- net_listening
- net_version
- 批量请求
-
以太坊Ethereum节点引擎
- API参考
- 常见问题
- 通用参考
链接复制成功!
获取指定网络的所有节点
功能介绍
获取指定网络的所有节点
URI
GET /v1/{project_id}/node-provider/networks/{network_id}/nodes
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
project_id |
是 |
String |
项目ID 最小长度:32 最大长度:32 |
network_id |
是 |
String |
网络ID 最小长度:36 最大长度:36 |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
offset |
否 |
Integer |
分页查询起始位置 最小值:0 最大值:1000 |
limit |
否 |
Integer |
每页返回的条目数量 最小值:1 最大值:1000 |
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
X-Auth-Token |
是 |
String |
用户Token 最小长度:1 最大长度:65535 |
响应参数
状态码: 200
参数 |
参数类型 |
描述 |
---|---|---|
nodes |
Array of Node objects |
节点列表信息 数组长度:0 - 100 |
count |
Integer |
总数 最小值:0 最大值:1000 |
参数 |
参数类型 |
描述 |
---|---|---|
id |
String |
节点ID 最小长度:36 最大长度:45 |
node_type |
String |
节点类型(全节点:Full node或支持质押节点:Full node (Staking supported)) 最小长度:0 最大长度:100 |
flavor |
String |
节点规格 最小长度:0 最大长度:100 |
create_time |
String |
节点创建时间 最小长度:0 最大长度:100 |
status |
Object |
节点状态(Available,Unavailable,Creating,Upgrading) |
eps_info |
EpsInfo object |
企业项目信息 |
状态码: 400
参数 |
参数类型 |
描述 |
---|---|---|
code |
String |
状态码 最小长度:3 最大长度:3 |
error_code |
String |
错误码 最小长度:12 最大长度:12 |
error_msg |
String |
错误信息 最小长度:1 最大长度:65535 |
message |
String |
错误详细信息 最小长度:0 最大长度:65535 |
状态码: 401
参数 |
参数类型 |
描述 |
---|---|---|
code |
String |
状态码 最小长度:3 最大长度:3 |
error_code |
String |
错误码 最小长度:12 最大长度:12 |
error_msg |
String |
错误信息 最小长度:1 最大长度:65535 |
message |
String |
错误详细信息 最小长度:0 最大长度:65535 |
状态码: 500
参数 |
参数类型 |
描述 |
---|---|---|
code |
String |
状态码 最小长度:3 最大长度:3 |
error_code |
String |
错误码 最小长度:12 最大长度:12 |
error_msg |
String |
错误信息 最小长度:1 最大长度:65535 |
message |
String |
错误详细信息 最小长度:0 最大长度:65535 |
请求示例
无
响应示例
状态码: 200
请求成功
{ "nodes" : [ { "id" : "468eda20-040b-11ee-877d-fa163e6c5c60", "node_type" : "Full node", "flavor" : { "cpu" : 4, "ram" : 16384, "description" : "Preferred", "azs" : [ "ap-southeast-3a" ] }, "create_time" : "2023-06-06T09:41:37.000553+08:00", "status" : "Available", "eps_info" : { "eps_name" : "default", "eps_id" : 0 } } ], "count" : 1 }
状态码: 400
请求参数校验不通过
{ "code" : 400, "error_code" : "BCS.03400001", "error_msg" : "Invalid request.", "message" : "unmarshal request data error" }
状态码: 401
鉴权失败
{ "code" : 401, "error_code" : "BCS.03401001", "error_msg" : "Authorization failed.", "message" : "request token is not valid" }
状态码: 500
服务内部执行错误
{ "code" : 500, "error_code" : "BCS.03500001", "error_msg" : "Internal error.", "message" : "project [xxx] node [xxx] get service bearer user token error" }
状态码
状态码 |
描述 |
---|---|
200 |
请求成功 |
400 |
请求参数校验不通过 |
401 |
鉴权失败 |
500 |
服务内部执行错误 |
错误码
请参见错误码。