获取蚂蚁区块链交易二维码(仅适用于阿里云国内站)。

调试

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

请求参数

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

系统规定参数。取值:DescribeAntChainMiniAppBrowserTransactionQRCodeNew

RegionId String cn-hangzhou

区域ID,限制cn-hangzhou

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
&<公共请求参数>

正常返回示例

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&amp;from=aliyun&amp;bizid=8bd720bde18c4b37b0f4a1c7834db163&amp;hash=ac73c8fa158436513e0b398632d9a082e04cee3eac6f9fb50087a46d801bdfd1&amp;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"
  }
}

错误码

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