全部產品
Search
文件中心

Blockchain as a Service:DescribeFabricExplorer

更新時間:Jan 24, 2025

調用DescribeFabricExplorer來瀏覽Fabric賬本相關的資訊。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

請求參數

名稱 類型 是否必選 樣本值 描述
Action String DescribeFabricExplorer

系統規定參數。取值:DescribeFabricExplorer

RegionId String cn-hangzhou

地區ID

OrganizationId String peers-test11-tzwny25vqicq

組織ID

ExMethod String GET

要求方法

ExUrl String /api/v1/channel

請求URL

ExBody String {}

請求體(註:保留使用)

返回資料

名稱 類型 樣本值 描述
RequestId String 19E91C1D-9BD0-468F-A7DA-915263C6689F

請求ID

Result String {}

返回可轉換成JSON的字串

Success Boolean true

返回狀態

ErrorCode Integer 200

傳回碼

DynamicMessage String An error in the monitoring service has occurred.

錯誤訊息

DynamicCode String ExplorerException

錯誤碼

樣本

請求樣本

# 擷取當前服務端支援API版本資訊,從v2版本開始支援
http(s)://[Endpoint]/?Action=DescribeFabricExplorer&ExMethod=GET&ExUrl=/api&<公用請求參數>


# 擷取所有通道資訊
http(s)://[Endpoint]/?Action=DescribeFabricExplorer&ExMethod=GET&ExUrl=/api/v1/channel&<公用請求參數>


# 擷取通道名為:channel的通道資訊
http(s)://[Endpoint]/?Action=DescribeFabricExplorer&ExMethod=GET&ExUrl=/api/v1/channel/:channel&<公用請求參數>


# 擷取通道名為:channel的通道中block資訊。limit表示最大擷取block數量,offset表示擷取的起始block,從0開始,可以為負整數
http(s)://[Endpoint]/?Action=DescribeFabricExplorer&ExMethod=GET&ExUrl=/api/v1/channel/:channel/block?limit=${limit}&offset=${offset}&<公用請求參數>


# 擷取通道名為:channel的通道中:block資訊,:block為blockId或blockHash
http(s)://[Endpoint]/?Action=DescribeFabricExplorer&ExMethod=GET&ExUrl=/api/v1/channel/:channel/block/:block&<公用請求參數>


# 擷取通道名為:channel的通道中:tx資訊
http(s)://[Endpoint]/?Action=DescribeFabricExplorer&ExMethod=GET&ExUrl=/api/v1/channel/:channel/tx/:tx&<公用請求參數>


# 擷取通道名為:channel的通道中的metric資訊
# :precision為minute或hour,表示按分鐘或小時計算metric
# :type為block或tx,表示按block或tx計算metric
# ${left}和${right}表示擷取metric的時間區間,格式滿足js => new Date(${left | right})即可。
http(s)://[Endpoint]/?Action=DescribeFabricExplorer&ExMethod=GET&ExUrl=/api/v1/channel/:channel/metric/:precision/:type?left=${left}&right=${right}&<公用請求參數>


# 擷取當前通道的背書統計資訊
http(s)://[Endpoint]/?Action=DescribeFabricExplorer&ExMethod=GET&ExUrl=/api/v2/channel/:channel/statistics/endorser&<公用請求參數>


# 擷取當前通道的鏈碼統計資訊
http(s)://[Endpoint]/?Action=DescribeFabricExplorer&ExMethod=GET&ExUrl=/api/v2/channel/:channel/statistics/chaincode&<公用請求參數>


# 擷取當前通道中被驗證通過交易統計資訊
http(s)://[Endpoint]/?Action=DescribeFabricExplorer&ExMethod=GET&ExUrl=/api/v2/channel/:channel/statistics/result&<公用請求參數>


# 擷取當前通道中交易發起使用者的統計資訊
http(s)://[Endpoint]/?Action=DescribeFabricExplorer&ExMethod=GET&ExUrl=/api/v2/channel/:channel/statistics/creator&<公用請求參數>


# 擷取當前通道下鏈碼的背書統計資訊
http(s)://[Endpoint]/?Action=DescribeFabricExplorer&ExMethod=GET&ExUrl=/api/v2/channel/:channel/statistics/chaincode/:chaincode/endorser&<公用請求參數>


# 擷取當前通道下鏈碼中被驗證通過交易統計資訊
http(s)://[Endpoint]/?Action=DescribeFabricExplorer&ExMethod=GET&ExUrl=/api/v2/channel/:channel/statistics/chaincode/:chaincode/result&<公用請求參數>


# 擷取當前通道下鏈碼中交易發起使用者的統計資訊
http(s)://[Endpoint]/?Action=DescribeFabricExplorer&ExMethod=GET&ExUrl=/api/v2/channel/:channel/statistics/chaincode/:chaincode/creator&<公用請求參數>


# 擷取當前通道下鏈碼的函數調用統計資訊
http(s)://[Endpoint]/?Action=DescribeFabricExplorer&ExMethod=GET&ExUrl=/api/v2/channel/:channel/statistics/chaincode/:chaincode/function&<公用請求參數>


# 擷取當前通道下鏈碼的函數版本統計資訊
http(s)://[Endpoint]/?Action=DescribeFabricExplorer&ExMethod=GET&ExUrl=/api/v2/channel/:channel/statistics/chaincode/:chaincode/version&<公用請求參數>

正常返回樣本

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeFabricExplorerResponse>
    <RequestId>AB2560A0-EF98-462D-B9BA-D422206B94B3</RequestId>
    <ErrorCode>200</ErrorCode>
    <Success>true</Success>
    <Result>{}</Result>
</DescribeFabricExplorerResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "AB2560A0-EF98-462D-B9BA-D422206B94B3",
  "ErrorCode" : 200,
  "Success" : true,
  "Result" : "{}"
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。