- Introduction
- Get Started
- Signature
- What is WUSD
- Webhook Service
- Sandbox Environment
- Blockchain Confirmations
- Appendix
- API Keys
- Core Functionality
- Api Reference
- Authentication
- Wallet
- Address
- Remit Info
- Transaction
Mint/Redeem History
Developing
POST
/openapi/v1/mint-redeem/search
transactions.
Request
Body Params text/plain
Example
Field | Type | Required | Max Length | Description |
---|---|---|---|---|
query | Object | Y | ||
sellCurrency | String | N | ||
buyCurrency | String | N | ||
createdTimeStart | String | N | ||
createdTimeEnd | String | N | ||
page | Object | Y | ||
current | Number | Y | 2^63 - 1 | |
size | Number | Y | 2^63 - 1 | return max value:50 |
Example:{
"query": {
"sellCurrency": "USD",
"buyCurrency": "WUSD",
"createdTimeStart": "2025-01-01 18:33:12",
"createdTimeEnd": "2025-01-03 18:33:12"
},
"pagination": {
"current": 1,
"size": 10
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://wallet.test.wspn.io/openapi/v1/mint-redeem/search' \
--header 'Content-Type: text/plain' \
--data-raw '{
"query": {
"sellCurrency": "USD",
"buyCurrency": "WUSD",
"createdTimeStart": "2025-01-01 18:33:12",
"createdTimeEnd": "2025-01-03 18:33:12"
},
"pagination": {
"current": 1,
"size": 10
}
}'
Responses
🟢200成功
application/json
Body
header
object
required
success
boolean
required
resultList
array [object {9}]
required
id
integer
optional
status
string
optional
sellCurrency
string
optional
buyCurrency
string
optional
sellAmount
string
optional
buyAmount
string
optional
rate
string
optional
createdTime
string
optional
completedTime
string
optional
Example
{
"header": {
"success": true
},
"resultList": [
{
"id": 250103125,
"status": "COMPLETED",
"sellCurrency": "USD",
"buyCurrency": "WUSD",
"sellAmount": "1000.00",
"buyAmount": "900.00",
"rate": "0.9",
"createdTime": "2025-01-03 17:48:35",
"completedTime": "2025-01-03 17:48:37"
}
],
"pagination": {
"current": 1,
"size": 10,
"pages": 1,
"total": 1
}
}