根據(jù)塊高查詢一條螞蟻區(qū)塊鏈的區(qū)塊信息(僅適用于阿里云國內(nèi)站)。

調(diào)試

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

請求參數(shù)

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

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

AntChainId String 8bd720bde18c4b37b0f4a1c7834db163

區(qū)塊鏈ID

Height Long 100

區(qū)塊高度

RegionId String cn-hangzhou

地域ID,限制cn-hangzhou

ConsortiumId String M8GaMEyX

聯(lián)盟ID

返回數(shù)據(jù)

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

請求返回碼

RequestId String D68D66B6-1964-4073-8714-B49F5EF1AEFC

請求ID

Success Boolean true

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

ResultMessage String OK

結(jié)果消息

Code String OK

返回碼

Message String OK

請求消息

ResultCode String OK

結(jié)果碼

Result Object

請求結(jié)果

PreviousHash String 2444ef0617e0c6845549dead70f118c5a58f03c04575ecb79e283ab5c34b491d

前一個區(qū)塊鏈哈希

Version Long 1

區(qū)塊版本

RootTxHash String 0000000000000000000000000000000000000000000000000000000000000000

根交易哈希

CreateTime Long 1609223363570

創(chuàng)建時間

TransactionSize Integer 1

交易數(shù)

Height Integer 254761

區(qū)塊高度

BlockHash String 5abf96debc87f1b64dcbaf4fa57fd46f2a06acdb5de0ba91ef9718d81aebafc7

區(qū)塊哈希

AntChainId String 8bd720bde18c4b37b0f4a1c7834db163

區(qū)塊鏈ID

TransSummaryList Array of TransSummaryList

交易列表

Hash String 076bba1b726b3bcb958cba6fffc03eaa5cbed59320271dcbc0e05648a18a94f2

交易Hash

From String e7d3e769f3f593dadcb8634cc5b09fc90dd3a61c4a06a79cb0923662fe6fae6b

源地址

TransTypeV10 String CALL_CONTRACT

合約鏈類型

CreateTime Long 1609223363570

創(chuàng)建時間

TransTypeV6 String ""

存證鏈類型

Height Long 254761

區(qū)塊高度

To String e93372533f323b2f12783aa3a586135cf421486439c2cdcde47411b78f9839ec

目的地址

GasUsed Long 4000000

Gas使用值

BlockHash String 5abf96debc87f1b64dcbaf4fa57fd46f2a06acdb5de0ba91ef9718d81aebafc7

區(qū)塊Hash

ReferenceCount Integer 0

交易被引用的次數(shù),單位次

Category Integer 0

業(yè)務(wù)分類,自定義數(shù)字,默認(rèn)為0

Alias String 8bd720bde18c4b37b0f4a1c7834db163

區(qū)塊鏈ID

示例

請求示例

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

正常返回示例

XML格式

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

<DescribeAntChainBlockV2Response>
    <HttpStatusCode>200</HttpStatusCode>
    <RequestId>D68D66B6-1964-4073-8714-B49F5EF1AEFC</RequestId>
    <Success>true</Success>
    <ResultMessage>OK</ResultMessage>
    <Code>OK</Code>
    <Message>OK</Message>
    <ResultCode>OK</ResultCode>
    <Result>
        <PreviousHash>2444ef0617e0c6845549dead70f118c5a58f03c04575ecb79e283ab5c34b491d</PreviousHash>
        <Version>1</Version>
        <RootTxHash>0000000000000000000000000000000000000000000000000000000000000000</RootTxHash>
        <CreateTime>1609223363570</CreateTime>
        <TransactionSize>1</TransactionSize>
        <Height>254761</Height>
        <BlockHash>5abf96debc87f1b64dcbaf4fa57fd46f2a06acdb5de0ba91ef9718d81aebafc7</BlockHash>
        <AntChainId>8bd720bde18c4b37b0f4a1c7834db163</AntChainId>
        <TransSummaryList>
            <Hash>076bba1b726b3bcb958cba6fffc03eaa5cbed59320271dcbc0e05648a18a94f2</Hash>
            <From>e7d3e769f3f593dadcb8634cc5b09fc90dd3a61c4a06a79cb0923662fe6fae6b</From>
            <TransTypeV10>CALL_CONTRACT</TransTypeV10>
            <CreateTime>1609223363570</CreateTime>
            <TransTypeV6>""</TransTypeV6>
            <Height>254761</Height>
            <To>e93372533f323b2f12783aa3a586135cf421486439c2cdcde47411b78f9839ec</To>
            <GasUsed>4000000</GasUsed>
            <BlockHash>5abf96debc87f1b64dcbaf4fa57fd46f2a06acdb5de0ba91ef9718d81aebafc7</BlockHash>
            <ReferenceCount>0</ReferenceCount>
            <Category>0</Category>
            <Alias>8bd720bde18c4b37b0f4a1c7834db163</Alias>
        </TransSummaryList>
    </Result>
</DescribeAntChainBlockV2Response>

JSON格式

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

{
  "HttpStatusCode" : "200",
  "RequestId" : "D68D66B6-1964-4073-8714-B49F5EF1AEFC",
  "Success" : true,
  "ResultMessage" : "OK",
  "Code" : "OK",
  "Message" : "OK",
  "ResultCode" : "OK",
  "Result" : {
    "PreviousHash" : "2444ef0617e0c6845549dead70f118c5a58f03c04575ecb79e283ab5c34b491d",
    "Version" : 1,
    "RootTxHash" : "0000000000000000000000000000000000000000000000000000000000000000",
    "CreateTime" : 1609223363570,
    "TransactionSize" : 1,
    "Height" : 254761,
    "BlockHash" : "5abf96debc87f1b64dcbaf4fa57fd46f2a06acdb5de0ba91ef9718d81aebafc7",
    "AntChainId" : "8bd720bde18c4b37b0f4a1c7834db163",
    "TransSummaryList" : [ {
      "Hash" : "076bba1b726b3bcb958cba6fffc03eaa5cbed59320271dcbc0e05648a18a94f2",
      "From" : "e7d3e769f3f593dadcb8634cc5b09fc90dd3a61c4a06a79cb0923662fe6fae6b",
      "TransTypeV10" : "CALL_CONTRACT",
      "CreateTime" : 1609223363570,
      "TransTypeV6" : "\"\"",
      "Height" : 254761,
      "To" : "e93372533f323b2f12783aa3a586135cf421486439c2cdcde47411b78f9839ec",
      "GasUsed" : 4000000,
      "BlockHash" : "5abf96debc87f1b64dcbaf4fa57fd46f2a06acdb5de0ba91ef9718d81aebafc7",
      "ReferenceCount" : 0,
      "Category" : 0,
      "Alias" : "8bd720bde18c4b37b0f4a1c7834db163"
    } ]
  }
}

錯誤碼

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