查詢一條螞蟻區(qū)塊鏈最新的區(qū)塊信息列表(僅適用于阿里云國(guó)內(nèi)站)。

調(diào)試

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

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

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

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

AntChainId String 查詢一條螞蟻區(qū)塊鏈最新的區(qū)塊信息列表(僅適用于阿里云國(guó)內(nèi)站

區(qū)塊鏈ID

RegionId String cn-hangzhou

地域ID,限制cn-hangzhou

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 Array of Result

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

PreviousHash String f208834bdc72bd6bb05c5ef1a35abbc8295a16deda9526b7b78c69ec24591b9f

上一個(gè)區(qū)塊哈希

Version Long 33556226

版本信息

TransactionSize Long 0

區(qū)塊中交易數(shù)量

Size Long 1024

區(qū)塊大小

RootTxHash String 0000000000000000000000000000000000000000000000000000000000000000

根哈希

CreateTime Long 1610002621000

創(chuàng)建時(shí)間

Height Long 259808

區(qū)塊高度

BizData String b21baa257788d97eb0006672ccc5008f465365e1dec88d0bbd833e150414b3d5

交易數(shù)據(jù)

BlockHash String b21baa257788d97eb0006672ccc5008f465365e1dec88d0bbd833e150414b3d5

區(qū)塊哈希

Alias String 8bd720bde18c4b37b0f4a1c7834db163

區(qū)塊鏈ID

示例

請(qǐng)求示例

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

正常返回示例

XML格式

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

<RequestId>5479D9A8-F0ED-4751-A52C-C5B02C65D8B6</RequestId>
<HttpStatusCode>200</HttpStatusCode>
<Code>OK</Code>
<ResultCode>OK</ResultCode>
<Success>true</Success>
<Result>
    <BizData>b21baa257788d97eb0006672ccc5008f465365e1dec88d0bbd833e150414b3d5</BizData>
    <TransactionSize>0</TransactionSize>
    <Version>33556226</Version>
    <Alias>8bd720bde18c4b37b0f4a1c7834db163</Alias>
    <BlockHash>b21baa257788d97eb0006672ccc5008f465365e1dec88d0bbd833e150414b3d5</BlockHash>
    <Size>1024</Size>
    <CreateTime>1610002621000</CreateTime>
    <PreviousHash>f208834bdc72bd6bb05c5ef1a35abbc8295a16deda9526b7b78c69ec24591b9f</PreviousHash>
    <Height>259808</Height>
    <RootTxHash>0000000000000000000000000000000000000000000000000000000000000000    0000000000000000000000000000000000000000000000000000000000000000    c1e9582dec94334b5b11ecb0c173b8350f2a125b28d81216a58235450e6c0c73</RootTxHash>
</Result>
<Result>
    <BizData>f208834bdc72bd6bb05c5ef1a35abbc8295a16deda9526b7b78c69ec24591b9f</BizData>
    <TransactionSize>0</TransactionSize>
    <Version>33556226</Version>
    <Alias>8bd720bde18c4b37b0f4a1c7834db163</Alias>
    <BlockHash>f208834bdc72bd6bb05c5ef1a35abbc8295a16deda9526b7b78c69ec24591b9f</BlockHash>
    <Size>1024</Size>
    <CreateTime>1610002618000</CreateTime>
    <PreviousHash>02350b3b09ad38042a86b4f8a385590358434f0193be5d3a40a423f1ad7bef98</PreviousHash>
    <Height>259807</Height>
    <RootTxHash>0000000000000000000000000000000000000000000000000000000000000000    0000000000000000000000000000000000000000000000000000000000000000    c1e9582dec94334b5b11ecb0c173b8350f2a125b28d81216a58235450e6c0c73</RootTxHash>
</Result>

JSON格式

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

{
  "RequestId" : "5479D9A8-F0ED-4751-A52C-C5B02C65D8B6",
  "HttpStatusCode" : "200",
  "Code" : "OK",
  "ResultCode" : "OK",
  "Success" : true,
  "Result" : [ {
    "BizData" : "b21baa257788d97eb0006672ccc5008f465365e1dec88d0bbd833e150414b3d5",
    "TransactionSize" : 0,
    "Version" : 33556226,
    "Alias" : "8bd720bde18c4b37b0f4a1c7834db163",
    "BlockHash" : "b21baa257788d97eb0006672ccc5008f465365e1dec88d0bbd833e150414b3d5",
    "Size" : 1024,
    "CreateTime" : 1610002621000,
    "PreviousHash" : "f208834bdc72bd6bb05c5ef1a35abbc8295a16deda9526b7b78c69ec24591b9f",
    "Height" : 259808,
    "RootTxHash" : "0000000000000000000000000000000000000000000000000000000000000000    0000000000000000000000000000000000000000000000000000000000000000    c1e9582dec94334b5b11ecb0c173b8350f2a125b28d81216a58235450e6c0c73"
  }, {
    "BizData" : "f208834bdc72bd6bb05c5ef1a35abbc8295a16deda9526b7b78c69ec24591b9f",
    "TransactionSize" : 0,
    "Version" : 33556226,
    "Alias" : "8bd720bde18c4b37b0f4a1c7834db163",
    "BlockHash" : "f208834bdc72bd6bb05c5ef1a35abbc8295a16deda9526b7b78c69ec24591b9f",
    "Size" : 1024,
    "CreateTime" : 1610002618000,
    "PreviousHash" : "02350b3b09ad38042a86b4f8a385590358434f0193be5d3a40a423f1ad7bef98",
    "Height" : 259807,
    "RootTxHash" : "0000000000000000000000000000000000000000000000000000000000000000    0000000000000000000000000000000000000000000000000000000000000000    c1e9582dec94334b5b11ecb0c173b8350f2a125b28d81216a58235450e6c0c73"
  } ]
}

錯(cuò)誤碼

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