cURL
curl --request GET \
--url https://apidev.nusd.me/nps/bill/txs \
--header 'BIZ-API-KEY: <api-key>' \
--header 'Biz-Api-Nonce: <api-key>' \
--header 'Biz-Api-Signature: <api-key>'import requests
url = "https://apidev.nusd.me/nps/bill/txs"
headers = {
"BIZ-API-KEY": "<api-key>",
"Biz-Api-Nonce": "<api-key>",
"Biz-Api-Signature": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'BIZ-API-KEY': '<api-key>',
'Biz-Api-Nonce': '<api-key>',
'Biz-Api-Signature': '<api-key>'
}
};
fetch('https://apidev.nusd.me/nps/bill/txs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://apidev.nusd.me/nps/bill/txs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("BIZ-API-KEY", "<api-key>")
req.Header.Add("Biz-Api-Nonce", "<api-key>")
req.Header.Add("Biz-Api-Signature", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apidev.nusd.me/nps/bill/txs")
.header("BIZ-API-KEY", "<api-key>")
.header("Biz-Api-Nonce", "<api-key>")
.header("Biz-Api-Signature", "<api-key>")
.asString();{
"status": 0,
"data": {
"total_count": "22",
"total_amount_in": "14.754",
"total_amount_out": "-17.47906",
"total_fee": "-4.64649",
"total_actual_in": "14.06336051",
"total_actual_out": "-13.53913",
"txs": [
{
"wallet_id": "332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4",
"transaction_id": "83ee917f-d44d-4e54-8e8b-2e78faf00db8",
"chain_id": "BASE_ETH",
"token_id": "BASE_USDT",
"to": "0xdc2e6b357766aa4b66f41dc29598379ce7d61d46",
"type": "Withdrawal",
"amount": "-0.00033",
"fee_ratio": "0.002",
"fee": "-0.0003",
"amount_actual": "-0.003",
"status": "Completed",
"hash": "0x718ffc5820c82f3bbdfe523bf1e1f97730bc522987e0e92897caa207580d23",
"created_at": 1772074798,
"er": "1",
"fee_fixed": "0.00",
"confirmed_at": 1770597795,
"completed_at": 1770597795
}
]
},
"msg": "<string>"
}{
"status": 0,
"data": {
"total_count": "22",
"total_amount_in": "14.754",
"total_amount_out": "-17.47906",
"total_fee": "-4.64649",
"total_actual_in": "14.06336051",
"total_actual_out": "-13.53913",
"txs": [
{
"wallet_id": "332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4",
"transaction_id": "83ee917f-d44d-4e54-8e8b-2e78faf00db8",
"chain_id": "BASE_ETH",
"token_id": "BASE_USDT",
"to": "0xdc2e6b357766aa4b66f41dc29598379ce7d61d46",
"type": "Withdrawal",
"amount": "-0.00033",
"fee_ratio": "0.002",
"fee": "-0.0003",
"amount_actual": "-0.003",
"status": "Completed",
"hash": "0x718ffc5820c82f3bbdfe523bf1e1f97730bc522987e0e92897caa207580d23",
"created_at": 1772074798,
"er": "1",
"fee_fixed": "0.00",
"confirmed_at": 1770597795,
"completed_at": 1770597795
}
]
},
"msg": "<string>"
}对账
交易对账单
获取交易对账单
GET
/
nps
/
bill
/
txs
cURL
curl --request GET \
--url https://apidev.nusd.me/nps/bill/txs \
--header 'BIZ-API-KEY: <api-key>' \
--header 'Biz-Api-Nonce: <api-key>' \
--header 'Biz-Api-Signature: <api-key>'import requests
url = "https://apidev.nusd.me/nps/bill/txs"
headers = {
"BIZ-API-KEY": "<api-key>",
"Biz-Api-Nonce": "<api-key>",
"Biz-Api-Signature": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'BIZ-API-KEY': '<api-key>',
'Biz-Api-Nonce': '<api-key>',
'Biz-Api-Signature': '<api-key>'
}
};
fetch('https://apidev.nusd.me/nps/bill/txs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://apidev.nusd.me/nps/bill/txs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("BIZ-API-KEY", "<api-key>")
req.Header.Add("Biz-Api-Nonce", "<api-key>")
req.Header.Add("Biz-Api-Signature", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apidev.nusd.me/nps/bill/txs")
.header("BIZ-API-KEY", "<api-key>")
.header("Biz-Api-Nonce", "<api-key>")
.header("Biz-Api-Signature", "<api-key>")
.asString();{
"status": 0,
"data": {
"total_count": "22",
"total_amount_in": "14.754",
"total_amount_out": "-17.47906",
"total_fee": "-4.64649",
"total_actual_in": "14.06336051",
"total_actual_out": "-13.53913",
"txs": [
{
"wallet_id": "332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4",
"transaction_id": "83ee917f-d44d-4e54-8e8b-2e78faf00db8",
"chain_id": "BASE_ETH",
"token_id": "BASE_USDT",
"to": "0xdc2e6b357766aa4b66f41dc29598379ce7d61d46",
"type": "Withdrawal",
"amount": "-0.00033",
"fee_ratio": "0.002",
"fee": "-0.0003",
"amount_actual": "-0.003",
"status": "Completed",
"hash": "0x718ffc5820c82f3bbdfe523bf1e1f97730bc522987e0e92897caa207580d23",
"created_at": 1772074798,
"er": "1",
"fee_fixed": "0.00",
"confirmed_at": 1770597795,
"completed_at": 1770597795
}
]
},
"msg": "<string>"
}{
"status": 0,
"data": {
"total_count": "22",
"total_amount_in": "14.754",
"total_amount_out": "-17.47906",
"total_fee": "-4.64649",
"total_actual_in": "14.06336051",
"total_actual_out": "-13.53913",
"txs": [
{
"wallet_id": "332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4",
"transaction_id": "83ee917f-d44d-4e54-8e8b-2e78faf00db8",
"chain_id": "BASE_ETH",
"token_id": "BASE_USDT",
"to": "0xdc2e6b357766aa4b66f41dc29598379ce7d61d46",
"type": "Withdrawal",
"amount": "-0.00033",
"fee_ratio": "0.002",
"fee": "-0.0003",
"amount_actual": "-0.003",
"status": "Completed",
"hash": "0x718ffc5820c82f3bbdfe523bf1e1f97730bc522987e0e92897caa207580d23",
"created_at": 1772074798,
"er": "1",
"fee_fixed": "0.00",
"confirmed_at": 1770597795,
"completed_at": 1770597795
}
]
},
"msg": "<string>"
}授权
API Key,请求需在请求头中携带。
时间戳,请求需在请求头中携带。
签名串,请求需在请求头中携带。
查询参数
钱包id
示例:
"b2c13dba-7787-4db5-98e3-cff374dc04cd"
查询的起始时间戳,单位:秒
示例:
1769996483
查询的截止时间戳,单位:秒
示例:
1770601283
start和end的匹配方式:Created 按交易的创建时间;Confirmed 按交易的确认时间;Completed 按交易的完成时间,默认 =Created
可用选项:
Created, Confirmed, Completed 示例:
"Confirmed"
交易类型:Deposit 充币;Withdrawal 提币;多个用逗号分隔(可选)
示例:
"Deposit,Withdrawal"
Processing 待确认、Approved 审核通过、Cancelled 已取消、Rejected 被拒绝、Signed 已签名、Pending 已广播、Confirming 确认中、Completed 已完成、Failed 失败;多个用逗号分隔(可选)
示例:
"Processing,Approved,Completed"
链id,多个用逗号分隔(可选)
示例:
"BASE_ETH,BSC_BNB"
币种id,多个用逗号分隔(可选)
示例:
"BASE_USDC,BSC_USDT"
当前页码
示例:
1
每页数量,最大每页1000;默认值:100
必填范围:
x <= 1000示例:
20