查询链上交易详情
curl --request GET \
--url https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/transactiondetail \
--header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
--header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
--header 'X-GatePay-On-Behalf-Of: <x-gatepay-on-behalf-of>' \
--header 'X-GatePay-Signature: <x-gatepay-signature>' \
--header 'X-GatePay-Timestamp: <x-gatepay-timestamp>'import requests
url = "https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/transactiondetail"
headers = {
"X-GatePay-Certificate-ClientId": "<x-gatepay-certificate-clientid>",
"X-GatePay-Signature": "<x-gatepay-signature>",
"X-GatePay-Timestamp": "<x-gatepay-timestamp>",
"X-GatePay-Nonce": "<x-gatepay-nonce>",
"X-GatePay-On-Behalf-Of": "<x-gatepay-on-behalf-of>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-GatePay-Certificate-ClientId': '<x-gatepay-certificate-clientid>',
'X-GatePay-Signature': '<x-gatepay-signature>',
'X-GatePay-Timestamp': '<x-gatepay-timestamp>',
'X-GatePay-Nonce': '<x-gatepay-nonce>',
'X-GatePay-On-Behalf-Of': '<x-gatepay-on-behalf-of>'
}
};
fetch('https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/transactiondetail', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/transactiondetail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>",
"X-GatePay-Nonce: <x-gatepay-nonce>",
"X-GatePay-On-Behalf-Of: <x-gatepay-on-behalf-of>",
"X-GatePay-Signature: <x-gatepay-signature>",
"X-GatePay-Timestamp: <x-gatepay-timestamp>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/transactiondetail")
.header("X-GatePay-Certificate-ClientId", "<x-gatepay-certificate-clientid>")
.header("X-GatePay-Signature", "<x-gatepay-signature>")
.header("X-GatePay-Timestamp", "<x-gatepay-timestamp>")
.header("X-GatePay-Nonce", "<x-gatepay-nonce>")
.header("X-GatePay-On-Behalf-Of", "<x-gatepay-on-behalf-of>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/transactiondetail"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-GatePay-Certificate-ClientId", "<x-gatepay-certificate-clientid>")
req.Header.Add("X-GatePay-Signature", "<x-gatepay-signature>")
req.Header.Add("X-GatePay-Timestamp", "<x-gatepay-timestamp>")
req.Header.Add("X-GatePay-Nonce", "<x-gatepay-nonce>")
req.Header.Add("X-GatePay-On-Behalf-Of", "<x-gatepay-on-behalf-of>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/transactiondetail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-GatePay-Certificate-ClientId"] = '<x-gatepay-certificate-clientid>'
request["X-GatePay-Signature"] = '<x-gatepay-signature>'
request["X-GatePay-Timestamp"] = '<x-gatepay-timestamp>'
request["X-GatePay-Nonce"] = '<x-gatepay-nonce>'
request["X-GatePay-On-Behalf-Of"] = '<x-gatepay-on-behalf-of>'
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"prepayId": "40100646616043520",
"merchantId": 10002,
"merchantTradeNo": "9384029384092499",
"transactionId": "1671522905110477",
"goodsName": "",
"currency": "BTC",
"orderAmount": "212.999",
"payCurrency": "BTC",
"payAmount": "212.999",
"status": "EXPIRED",
"utcCreateTime": "2022-12-20 07:45:39",
"utcExpireTime": "2022-12-20 07:55:00",
"utcUpdateTime": "2022-12-20 07:46:00",
"transactTime": 1671522905110,
"order_name": "MiniApp-Payment-1#9384029384092499",
"channelId": "123456",
"transactionDetail": {
"inTerm": {
"done": {
"amount": "100",
"txList": [
{
"chain": "BTC",
"address": "12eBREQqZFFDqgDfXkuBdzW2KBwhU8amPn",
"fromAddress": "PAzupoupdSYaYoajDcABEUzigBRzewvzN",
"fullCurrType": "BTC",
"amount": "100",
"txId": "dosajdajdiojawojdoiwajdojaefhs",
"utcCreateTime": "2022-12-19 11:49:00",
"utcUpdateTime": "2022-12-19 11:50:00",
"utcConfirmingTime": "2022-12-19 11:51:00",
"complianceStatus": "ACCEPTED",
"utcDoneTime": "2022-12-19 11:52:00"
}
]
},
"wait": {
"amount": "99",
"txList": [
{
"chain": "BTC",
"address": "12eBREQqZFFDqgDfXkuBdzW2KBwhU8amPn",
"fromAddress": "PAzupoupdSYaYoajDcABEUzigBRzewvzN",
"fullCurrType": "BTC",
"amount": "99",
"txId": "dosajdajdiojawojdoiwajdojaikjs",
"utcCreateTime": "2022-12-19 11:49:30",
"utcUpdateTime": "2022-12-19 11:50:00",
"utcConfirmingTime": "2022-12-19 11:51:30",
"complianceStatus": "PEND"
}
]
}
},
"outOfTerm": {
"done": {
"amount": "98",
"txList": [
{
"chain": "BTC",
"address": "12eBREQqZFFDqgDfXkuBdzW2KBwhU8amPn",
"fromAddress": "PAzupoupdSYaYoajDcABEUzigBRzewvzN",
"fullCurrType": "BTC",
"amount": "98",
"txId": "dosajdajdoakawojdoiwajdojaikjs",
"utcCreateTime": "2022-12-19 11:55:00",
"utcUpdateTime": "2022-12-19 11:56:00",
"utcConfirmingTime": "2022-12-19 11:57:00",
"complianceStatus": "ACCEPTED",
"utcDoneTime": "2022-12-19 11:58:00"
}
]
},
"wait": {
"amount": "193",
"txList": [
{
"chain": "BTC",
"address": "12eBREQqZFFDqgDfXkuBdzW2KBwhU8amPn",
"fromAddress": "PAzupoupdSYaYoajDcABEUzigBRzewvzN",
"fullCurrType": "BTC",
"amount": "97",
"txId": "dosajdajdiojawolakiwajdojaikjs",
"utcCreateTime": "2022-12-19 11:55:30",
"utcUpdateTime": "2022-12-19 11:56:00",
"complianceStatus": "REJECTED"
},
{
"chain": "BTC",
"address": "12eBREQqZFFDqgDfXkuBdzW2KBwhU8amPn",
"fromAddress": "PAzupoupdSYaYoajDcABEUzigBRzewvzN",
"fullCurrType": "BTC",
"amount": "96",
"txId": "dosajdajdiojawolakiwajdppaikjs",
"utcCreateTime": "2022-12-19 11:55:45",
"utcUpdateTime": "2022-12-19 11:56:00",
"utcConfirmingTime": "2022-12-19 11:57:30",
"complianceStatus": "PEND"
}
]
}
}
}
}
}地址支付
查询链上交易详情
查询订单在链上的交易详情
GET
/
payment
/
open
/
institution
/
v1
/
pay
/
address
/
transactiondetail
查询链上交易详情
curl --request GET \
--url https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/transactiondetail \
--header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
--header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
--header 'X-GatePay-On-Behalf-Of: <x-gatepay-on-behalf-of>' \
--header 'X-GatePay-Signature: <x-gatepay-signature>' \
--header 'X-GatePay-Timestamp: <x-gatepay-timestamp>'import requests
url = "https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/transactiondetail"
headers = {
"X-GatePay-Certificate-ClientId": "<x-gatepay-certificate-clientid>",
"X-GatePay-Signature": "<x-gatepay-signature>",
"X-GatePay-Timestamp": "<x-gatepay-timestamp>",
"X-GatePay-Nonce": "<x-gatepay-nonce>",
"X-GatePay-On-Behalf-Of": "<x-gatepay-on-behalf-of>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-GatePay-Certificate-ClientId': '<x-gatepay-certificate-clientid>',
'X-GatePay-Signature': '<x-gatepay-signature>',
'X-GatePay-Timestamp': '<x-gatepay-timestamp>',
'X-GatePay-Nonce': '<x-gatepay-nonce>',
'X-GatePay-On-Behalf-Of': '<x-gatepay-on-behalf-of>'
}
};
fetch('https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/transactiondetail', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/transactiondetail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>",
"X-GatePay-Nonce: <x-gatepay-nonce>",
"X-GatePay-On-Behalf-Of: <x-gatepay-on-behalf-of>",
"X-GatePay-Signature: <x-gatepay-signature>",
"X-GatePay-Timestamp: <x-gatepay-timestamp>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/transactiondetail")
.header("X-GatePay-Certificate-ClientId", "<x-gatepay-certificate-clientid>")
.header("X-GatePay-Signature", "<x-gatepay-signature>")
.header("X-GatePay-Timestamp", "<x-gatepay-timestamp>")
.header("X-GatePay-Nonce", "<x-gatepay-nonce>")
.header("X-GatePay-On-Behalf-Of", "<x-gatepay-on-behalf-of>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/transactiondetail"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-GatePay-Certificate-ClientId", "<x-gatepay-certificate-clientid>")
req.Header.Add("X-GatePay-Signature", "<x-gatepay-signature>")
req.Header.Add("X-GatePay-Timestamp", "<x-gatepay-timestamp>")
req.Header.Add("X-GatePay-Nonce", "<x-gatepay-nonce>")
req.Header.Add("X-GatePay-On-Behalf-Of", "<x-gatepay-on-behalf-of>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/transactiondetail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-GatePay-Certificate-ClientId"] = '<x-gatepay-certificate-clientid>'
request["X-GatePay-Signature"] = '<x-gatepay-signature>'
request["X-GatePay-Timestamp"] = '<x-gatepay-timestamp>'
request["X-GatePay-Nonce"] = '<x-gatepay-nonce>'
request["X-GatePay-On-Behalf-Of"] = '<x-gatepay-on-behalf-of>'
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"prepayId": "40100646616043520",
"merchantId": 10002,
"merchantTradeNo": "9384029384092499",
"transactionId": "1671522905110477",
"goodsName": "",
"currency": "BTC",
"orderAmount": "212.999",
"payCurrency": "BTC",
"payAmount": "212.999",
"status": "EXPIRED",
"utcCreateTime": "2022-12-20 07:45:39",
"utcExpireTime": "2022-12-20 07:55:00",
"utcUpdateTime": "2022-12-20 07:46:00",
"transactTime": 1671522905110,
"order_name": "MiniApp-Payment-1#9384029384092499",
"channelId": "123456",
"transactionDetail": {
"inTerm": {
"done": {
"amount": "100",
"txList": [
{
"chain": "BTC",
"address": "12eBREQqZFFDqgDfXkuBdzW2KBwhU8amPn",
"fromAddress": "PAzupoupdSYaYoajDcABEUzigBRzewvzN",
"fullCurrType": "BTC",
"amount": "100",
"txId": "dosajdajdiojawojdoiwajdojaefhs",
"utcCreateTime": "2022-12-19 11:49:00",
"utcUpdateTime": "2022-12-19 11:50:00",
"utcConfirmingTime": "2022-12-19 11:51:00",
"complianceStatus": "ACCEPTED",
"utcDoneTime": "2022-12-19 11:52:00"
}
]
},
"wait": {
"amount": "99",
"txList": [
{
"chain": "BTC",
"address": "12eBREQqZFFDqgDfXkuBdzW2KBwhU8amPn",
"fromAddress": "PAzupoupdSYaYoajDcABEUzigBRzewvzN",
"fullCurrType": "BTC",
"amount": "99",
"txId": "dosajdajdiojawojdoiwajdojaikjs",
"utcCreateTime": "2022-12-19 11:49:30",
"utcUpdateTime": "2022-12-19 11:50:00",
"utcConfirmingTime": "2022-12-19 11:51:30",
"complianceStatus": "PEND"
}
]
}
},
"outOfTerm": {
"done": {
"amount": "98",
"txList": [
{
"chain": "BTC",
"address": "12eBREQqZFFDqgDfXkuBdzW2KBwhU8amPn",
"fromAddress": "PAzupoupdSYaYoajDcABEUzigBRzewvzN",
"fullCurrType": "BTC",
"amount": "98",
"txId": "dosajdajdoakawojdoiwajdojaikjs",
"utcCreateTime": "2022-12-19 11:55:00",
"utcUpdateTime": "2022-12-19 11:56:00",
"utcConfirmingTime": "2022-12-19 11:57:00",
"complianceStatus": "ACCEPTED",
"utcDoneTime": "2022-12-19 11:58:00"
}
]
},
"wait": {
"amount": "193",
"txList": [
{
"chain": "BTC",
"address": "12eBREQqZFFDqgDfXkuBdzW2KBwhU8amPn",
"fromAddress": "PAzupoupdSYaYoajDcABEUzigBRzewvzN",
"fullCurrType": "BTC",
"amount": "97",
"txId": "dosajdajdiojawolakiwajdojaikjs",
"utcCreateTime": "2022-12-19 11:55:30",
"utcUpdateTime": "2022-12-19 11:56:00",
"complianceStatus": "REJECTED"
},
{
"chain": "BTC",
"address": "12eBREQqZFFDqgDfXkuBdzW2KBwhU8amPn",
"fromAddress": "PAzupoupdSYaYoajDcABEUzigBRzewvzN",
"fullCurrType": "BTC",
"amount": "96",
"txId": "dosajdajdiojawolakiwajdppaikjs",
"utcCreateTime": "2022-12-19 11:55:45",
"utcUpdateTime": "2022-12-19 11:56:00",
"utcConfirmingTime": "2022-12-19 11:57:30",
"complianceStatus": "PEND"
}
]
}
}
}
}
}概述
本页说明GET /payment/open/institution/v1/pay/address/transactiondetail 接口。完整的请求参数、响应结构与示例由上方关联的 OpenAPI 定义渲染。
查询地址直付单在链上的交易详情,包含有效期内直付记录和有效期外的支付记录两部分
说明
- 认证方式使用 GatePay 标准签名请求头。
- 本页展示同一接口的机构路径版本。
- 除创建子账户、查询子账户详情、分页查询子账户外,机构侧请求需携带
X-GatePay-On-Behalf-Of。 - 通用签名规则请参见 /api-reference/version/100/cn/common/securityAndSignature。
请求头
商户客户端ID
示例:
"4186d0c6-6a35-55a9-8dc6-5312769dbff8"
签名
示例:
"672d5650dcc9bb22ebf25fa16c28d03c0e159d742a9176d4340a5da326d75dc8"
毫秒级时间戳,与服务端时间偏差不得超过30秒
示例:
"1672905655498"
随机数
示例:
"9578"
必填代理归属请求头。请填写本次请求的发起方账户 ID;在机构代理商户 API 中通常填写目标子账户 ID,在机构代扣与划转接口中可填写机构账户 ID 或子账户 ID。
查询参数
地址支付预支付单id
响应
200 - application/json
成功响应
查询链上交易详情响应
支付单ID
商户在Gate的UID
商户系统交易号
交易流水号
商品名称
订单币种
订单金额
用户实际支付币种
用户实际支付金额
订单状态
订单创建时间(UTC)
订单过期时间(UTC)
订单状态更新时间(UTC)
订单在后台完成交易的UTC毫秒时间戳
订单名称
客户名称
链上交易详情
Show child attributes
Show child attributes
⌘I

