根據(jù)交易哈希查詢一條螞蟻區(qū)塊鏈的交易回執(zhí)信息(僅適用于阿里云國內(nèi)站)。

調(diào)試

您可以在OpenAPI Explorer中直接運(yùn)行該接口,免去您計(jì)算簽名的困擾。運(yùn)行成功后,OpenAPI Explorer可以自動(dòng)生成SDK代碼示例。

請(qǐng)求參數(shù)

名稱 類型 是否必選 示例值 描述
Action String DescribeAntChainTransactionReceiptV2

系統(tǒng)規(guī)定參數(shù)。取值:DescribeAntChainTransactionReceiptV2

RegionId String cn-hangzhou

地域ID,限制cn-hangzhou

AntChainId String 8bd720bde18c4b37b0f4a1c7834db163

區(qū)塊鏈ID

Hash String 8bd720bde18c4b37b0f4a1c7834db163

交易哈希

ConsortiumId String M8GaMEyX

聯(lián)盟ID

返回?cái)?shù)據(jù)

名稱 類型 示例值 描述
HttpStatusCode String 200

請(qǐng)求返回碼

RequestId String D68D66B6-1964-4073-8714-B49F5EF1AEFC

請(qǐng)求ID

Success Boolean true

結(jié)果狀態(tài)

ResultMessage String OK

結(jié)果消息

Code String OK

返回碼

Message String OK

請(qǐng)求消息

ResultCode String OK

結(jié)果碼

Result Object

請(qǐng)求結(jié)果

Data String data

Data:自定義輸出結(jié)果數(shù)據(jù)

GasUsed String 20000

消耗的Gas

Result Long 0

結(jié)果,用戶自定義錯(cuò)誤碼

  • 0:表示交易執(zhí)行成功
  • 非0:表示交易執(zhí)行失敗
Logs Array of String [""]

logs:合約事件

示例

請(qǐng)求示例

http(s)://[Endpoint]/?Action=DescribeAntChainTransactionReceiptV2
&<公共請(qǐng)求參數(shù)>

正常返回示例

XML格式

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

<RequestId>4CE888A8-2232-4091-817F-57C38A432C8B</RequestId>
<HttpStatusCode>200</HttpStatusCode>
<Code>OK</Code>
<ResultCode>OK</ResultCode>
<Success>true</Success>
<Result>
    <Data>{ "nodes" : [ { "nodeId" : "0x185F7D2745FFB31E43082771A64222E944F125533C8D444B8AB44996D20EAEE5", "endpoints" : [{ "ip" : 143171187, "port" : "18230" }, { "ip" : 143171187, "port" : "18230" } ], "publicKey" : "0x44E20E9", "nodeType" : 1, "nodeState" : 2, "domainName" : "", "nodesACRule" : "" }, { "nodeId" : "0x44E20E9", "endpoints" : [{ "ip" : 143171187, "port" : "18231" }, { "ip" : 143171187, "port" : "18231" } ], "publicKey" : "0x44E20E9", "nodeType" : 1, "nodeState" : 2, "domainName" : "", "nodesACRule" : "" }, { "nodeId" : "0x437BCC0B400878F2F9C11430F37BE0A5FF3939BE9DD9E0F9F4CE854A1B68BBC1", "endpoints" : [{ "ip" : 143171187, "port" : "18232" }, { "ip" : 143171187, "port" : "18232" } ], "publicKey" : "0x44E20E9", "nodeType" : 1, "nodeState" : 2, "domainName" : "", "nodesACRule" : "" }, { "nodeId" : "0x44E20E9", "endpoints" : [{ "ip" : 143171187, "port" : "18233" }, { "ip" : 143171187, "port" : "18233" } ], "publicKey" : "0x44E20E9", "nodeType" : 1, "nodeState" : 2, "domainName" : "", "nodesACRule" : "" } ] }</Data>
    <GasUsed>578648</GasUsed>
    <Logs/>
    <Result>0</Result>
</Result>

JSON格式

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

{
  "RequestId" : "4CE888A8-2232-4091-817F-57C38A432C8B",
  "HttpStatusCode" : "200",
  "Code" : "OK",
  "ResultCode" : "OK",
  "Success" : true,
  "Result" : {
    "Data" : "{ \"nodes\" : [ { \"nodeId\" : \"0x185F7D2745FFB31E43082771A64222E944F125533C8D444B8AB44996D20EAEE5\", \"endpoints\" : [{ \"ip\" : 143171187, \"port\" : \"18230\" }, { \"ip\" : 143171187, \"port\" : \"18230\" } ], \"publicKey\" : \"0x44E20E9\", \"nodeType\" : 1, \"nodeState\" : 2, \"domainName\" : \"\", \"nodesACRule\" : \"\" }, { \"nodeId\" : \"0x44E20E9\", \"endpoints\" : [{ \"ip\" : 143171187, \"port\" : \"18231\" }, { \"ip\" : 143171187, \"port\" : \"18231\" } ], \"publicKey\" : \"0x44E20E9\", \"nodeType\" : 1, \"nodeState\" : 2, \"domainName\" : \"\", \"nodesACRule\" : \"\" }, { \"nodeId\" : \"0x437BCC0B400878F2F9C11430F37BE0A5FF3939BE9DD9E0F9F4CE854A1B68BBC1\", \"endpoints\" : [{ \"ip\" : 143171187, \"port\" : \"18232\" }, { \"ip\" : 143171187, \"port\" : \"18232\" } ], \"publicKey\" : \"0x44E20E9\", \"nodeType\" : 1, \"nodeState\" : 2, \"domainName\" : \"\", \"nodesACRule\" : \"\" }, { \"nodeId\" : \"0x44E20E9\", \"endpoints\" : [{ \"ip\" : 143171187, \"port\" : \"18233\" }, { \"ip\" : 143171187, \"port\" : \"18233\" } ], \"publicKey\" : \"0x44E20E9\", \"nodeType\" : 1, \"nodeState\" : 2, \"domainName\" : \"\", \"nodesACRule\" : \"\" } ] }",
    "GasUsed" : "578648",
    "Logs" : [ "" ],
    "Result" : 0
  }
}

錯(cuò)誤碼

訪問錯(cuò)誤中心查看更多錯(cuò)誤碼。