獲取螞蟻區塊鏈交易二維碼(僅適用于阿里云國內站)。
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
請求參數
名稱 | 類型 | 是否必選 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeAntChainMiniAppBrowserTransactionQRCodeNew | 系統規定參數。取值:DescribeAntChainMiniAppBrowserTransactionQRCodeNew。 |
AntChainId | String | 是 | bDXK6boZ | 區塊鏈ID |
TransactionHash | String | 是 | 4a1f1371012cf840a9e4c6bde430d5ba600e422e592d153bd2689783cd1f87d0 | 交易哈希值 |
ContractId | String | 否 | 9782291a957d28bec9e02f3dcb27d78392815ede7670b70793e0fd9763309cda | 合約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 | 請求結果 |
|
Base64QRCodePNG | String | iVBORw0KGgoAAAANSUhEUgAAAPAAAADwCAIAAACxN37FAAAcb0lEQVR42u3dCZAc1XkAYGlPSRZIGIwEtos4tlM4lE05hhBsU | Base64編碼的二維碼 png 圖片 |
QRCodeContent | String | https://render.antfin.com/p/s/miniapp-web/?type=trans&from=aliyun&bizid=8bd720bde18c4b37b0f4a1c7834db163&hash=ac73c8fa158436513e0b398632d9a082e04cee3eac6f9fb50087a46d801bdfd1&contractId= | 二維碼內容 |
TransactionHash | String | ac73c8fa158436513e0b398632d9a082e04cee3eac6f9fb50087a46d801bdfd1 | 交易Hash |
AntChainId | String | 8bd720bde18c4b37b0f4a1c7834db163 | 區塊鏈ID |
示例
請求示例
http(s)://[Endpoint]/?Action=DescribeAntChainMiniAppBrowserTransactionQRCodeNew
&AntChainId=bDXK6boZ
&TransactionHash=4a1f1371012cf840a9e4c6bde430d5ba600e422e592d153bd2689783cd1f87d0
&ContractId=9782291a957d28bec9e02f3dcb27d78392815ede7670b70793e0fd9763309cda
&公共請求參數
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeAntChainMiniAppBrowserTransactionQRCodeNewResponse>
<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>
<Base64QRCodePNG>iVBORw0KGgoAAAANSUhEUgAAAPAAAADwCAIAAACxN37FAAAcb0lEQVR42u3dCZAc1XkAYGlPSRZIGIwEtos4tlM4lE05hhBsU</Base64QRCodePNG>
<QRCodeContent>https://render.antfin.com/p/s/miniapp-web/?type=trans&from=aliyun&bizid=8bd720bde18c4b37b0f4a1c7834db163&hash=ac73c8fa158436513e0b398632d9a082e04cee3eac6f9fb50087a46d801bdfd1&contractId=</QRCodeContent>
<TransactionHash>ac73c8fa158436513e0b398632d9a082e04cee3eac6f9fb50087a46d801bdfd1</TransactionHash>
<AntChainId>8bd720bde18c4b37b0f4a1c7834db163</AntChainId>
</Result>
</DescribeAntChainMiniAppBrowserTransactionQRCodeNewResponse>
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" : {
"Base64QRCodePNG" : "iVBORw0KGgoAAAANSUhEUgAAAPAAAADwCAIAAACxN37FAAAcb0lEQVR42u3dCZAc1XkAYGlPSRZIGIwEtos4tlM4lE05hhBsU",
"QRCodeContent" : "https://render.antfin.com/p/s/miniapp-web/?type=trans&from=aliyun&bizid=8bd720bde18c4b37b0f4a1c7834db163&hash=ac73c8fa158436513e0b398632d9a082e04cee3eac6f9fb50087a46d801bdfd1&contractId=",
"TransactionHash" : "ac73c8fa158436513e0b398632d9a082e04cee3eac6f9fb50087a46d801bdfd1",
"AntChainId" : "8bd720bde18c4b37b0f4a1c7834db163"
}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。