DescribeAntChainTransactionV2
更新時間:
根據(jù)交易哈希查詢一條螞蟻區(qū)塊鏈的交易信息(僅適用于阿里云國內(nèi)站)。
調(diào)試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
請求參數(shù)
名稱 | 類型 | 是否必選 | 示例值 | 描述 |
Action | String | 是 | DescribeAntChainTransactionV2 | 系統(tǒng)規(guī)定參數(shù)。取值:DescribeAntChainTransactionV2。 |
AntChainId | String | 是 | 8bd720bde18c4b37b0f4a1c7834db163 | 區(qū)塊鏈ID |
Hash | String | 是 | 227072dcd1a5d78098da99ccc8024304b9fb54fc6b65e37ef919d7f2da080061 | 交易哈希 |
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é)果 |
|
Hash | String | b3b0d2db83d3e670449d1e2a39d1d13b7e0e6080b0f9c6945f79eca68d1dd2ca | 交易哈希 |
BlockHash | String | 1168bc5dd0b78d15446b15ea5a7f7822a7d07c007dd3a50becf98da220fc08f6 | 區(qū)塊哈希 |
BlockVersion | String | 10 | 區(qū)塊版本 |
BlockHeight | Long | 100 | 區(qū)塊高度 |
CreateTime | Long | 1563954336850 | 交易創(chuàng)建時間 |
Transaction | Object | 交易詳情 |
|
Hash | String | b3b0d2db83d3e670449d1e2a39d1d13b7e0e6080b0f9c6945f79eca68d1dd2ca | 交易哈希 |
Value | String | 0 | 交易金額 |
From | String | e7d3e769f3f593dadcb8634cc5b09fc90dd3a61c4a06a79cb0923662fe6fae6b | 交易發(fā)送者哈希 |
Data | String | "" | 數(shù)據(jù) |
Nonce | String | 5675407026657953619 | 交易Nonce |
To | String | 961085f3c7ef705ad587d0cbe11d7863a5a11af7451f4e9b1edadd74402addf5 | 交易接收方地址 |
Timestamp | Long | 1563954336850 | 交易發(fā)送時戳 |
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
&公共請求參數(shù)
正常返回示例
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..." ]
}
}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
文檔內(nèi)容是否對您有幫助?