根据块高查询一条蚂蚁区块链的区块信息(仅适用于阿里云国内站)。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeAntChainBlockV2 |
系统规定参数。取值:DescribeAntChainBlockV2。 |
AntChainId | String | 是 | 8bd720bde18c4b37b0f4a1c7834db163 |
区块链ID |
Height | Long | 是 | 100 |
区块高度 |
RegionId | String | 否 | cn-hangzhou |
地域ID,限制cn-hangzhou |
ConsortiumId | String | 否 | M8GaMEyX |
联盟ID |
返回数据
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeAntChainBlockV2
&<公共请求参数>
正常返回示例
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"
} ]
}
}
错误码
访问错误中心查看更多错误码。