文档

DescribeAntChainTransactionV2

更新时间:

根据交易哈希查询一条蚂蚁区块链的交易信息(仅适用于阿里云国内站)。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DescribeAntChainTransactionV2

系统规定参数。取值:DescribeAntChainTransactionV2

AntChainId String 8bd720bde18c4b37b0f4a1c7834db163

区块链ID

Hash String 227072dcd1a5d78098da99ccc8024304b9fb54fc6b65e37ef919d7f2da080061

交易哈希

ConsortiumId String M8GaMEyX

联盟ID

返回数据

名称 类型 示例值 描述
HttpStatusCode String 200

请求返回码

RequestId String D68D66B6-1964-4073-8714-B49F5EF1AEFC

请求ID

Success Boolean true

结果状态

ResultMessage String OK

结果消息

Code String OK

返回码

Message String OK

请求消息

ResultCode String OK

结果码

Result Object

请求结果

Hash String b3b0d2db83d3e670449d1e2a39d1d13b7e0e6080b0f9c6945f79eca68d1dd2ca

交易哈希

BlockHash String 1168bc5dd0b78d15446b15ea5a7f7822a7d07c007dd3a50becf98da220fc08f6

区块哈希

BlockVersion String 10

区块版本

BlockHeight Long 100

区块高度

CreateTime Long 1563954336850

交易创建时间

Transaction Object

交易详情

Hash String b3b0d2db83d3e670449d1e2a39d1d13b7e0e6080b0f9c6945f79eca68d1dd2ca

交易哈希

Value String 0

交易金额

From String e7d3e769f3f593dadcb8634cc5b09fc90dd3a61c4a06a79cb0923662fe6fae6b

交易发送者哈希

Data String ""

数据

Nonce String 5675407026657953619

交易Nonce

To String 961085f3c7ef705ad587d0cbe11d7863a5a11af7451f4e9b1edadd74402addf5

交易接收方地址

Timestamp Long 1563954336850

交易发送时戳

Gas String 4000000

Gas值

TxType String UNFREEZE_ACCOUNT_CONTRACT

交易类型

Period Long 1563954336850

Period

Extentions Array of String []

扩展信息

Signatures Array of String 5s6JhauIqAlMb6d+7...

签名

示例

请求示例

http(s)://[Endpoint]/?Action=DescribeAntChainTransactionV2
&AntChainId=8bd720bde18c4b37b0f4a1c7834db163
&Hash=227072dcd1a5d78098da99ccc8024304b9fb54fc6b65e37ef919d7f2da080061
&ConsortiumId=M8GaMEyX
&公共请求参数

正常返回示例

XML格式

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

<DescribeAntChainTransactionV2Response>
    <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>
        <Hash>b3b0d2db83d3e670449d1e2a39d1d13b7e0e6080b0f9c6945f79eca68d1dd2ca</Hash>
        <BlockHash>1168bc5dd0b78d15446b15ea5a7f7822a7d07c007dd3a50becf98da220fc08f6</BlockHash>
        <BlockVersion>10</BlockVersion>
        <BlockHeight>100</BlockHeight>
        <CreateTime>1563954336850</CreateTime>
        <Transaction>
            <Hash>b3b0d2db83d3e670449d1e2a39d1d13b7e0e6080b0f9c6945f79eca68d1dd2ca</Hash>
            <Value>0</Value>
            <From>e7d3e769f3f593dadcb8634cc5b09fc90dd3a61c4a06a79cb0923662fe6fae6b</From>
            <Data>""</Data>
            <Nonce>5675407026657953619</Nonce>
            <To>961085f3c7ef705ad587d0cbe11d7863a5a11af7451f4e9b1edadd74402addf5</To>
            <Timestamp>1563954336850</Timestamp>
            <Gas>4000000</Gas>
            <TxType>UNFREEZE_ACCOUNT_CONTRACT</TxType>
            <Period>1563954336850</Period>
            <Extentions>[]</Extentions>
            <Signatures>5s6JhauIqAlMb6d+7...</Signatures>
        </Transaction>
    </Result>
</DescribeAntChainTransactionV2Response>

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" : {
    "Hash" : "b3b0d2db83d3e670449d1e2a39d1d13b7e0e6080b0f9c6945f79eca68d1dd2ca",
    "BlockHash" : "1168bc5dd0b78d15446b15ea5a7f7822a7d07c007dd3a50becf98da220fc08f6",
    "BlockVersion" : "10",
    "BlockHeight" : 100,
    "CreateTime" : 1563954336850,
    "Transaction" : {
      "Hash" : "b3b0d2db83d3e670449d1e2a39d1d13b7e0e6080b0f9c6945f79eca68d1dd2ca",
      "Value" : "0",
      "From" : "e7d3e769f3f593dadcb8634cc5b09fc90dd3a61c4a06a79cb0923662fe6fae6b",
      "Data" : "\"\"",
      "Nonce" : "5675407026657953619",
      "To" : "961085f3c7ef705ad587d0cbe11d7863a5a11af7451f4e9b1edadd74402addf5",
      "Timestamp" : 1563954336850,
      "Gas" : "4000000",
      "TxType" : "UNFREEZE_ACCOUNT_CONTRACT",
      "Period" : 1563954336850,
      "Extentions" : [ "[]" ],
      "Signatures" : [ "5s6JhauIqAlMb6d+7..." ]
    }
  }
}

错误码

访问错误中心查看更多错误码。