Swap 진행 상태 처리
지갑 정보를 조회합니다.
PUT
https://{dashboard-domain}/v1.0/db/swap/status
Headers
Name
Type
Description
Authorization*
string
Bearer {{web-access-token}}
Request Body
Name
Type
Description
tx_id*
int64
Swap 요청 api 응답값으로 받은 tx_id
tx_status*
int64
상태 정보
2 : Point->coin swap 할때 수수료 전송 시작(tx_hash 정보 필수)
4: Point->coin swap 할때 수수료 전송 실패
5: coin->point swap 할때 토큰 전송 시작 (tx_hash 정보 필수)
7: coin->point swap 할때 토큰 전송 실패
tx_hash
String
from_wallet_address*
String
사용자의 wallet 주소, swap 요청 api 응답의 ‘coin->walletaddress’ 와 동일 해야됨
{
"return": 0,
"message": "success"
}
curl --location --request GET 'https://{dashboard-domain}/v1.0/db/swap/inprogress/notexist?au_id=1' \
--header 'Authorization: Bearer eyJhbGciOiJ...'
--data '{
"tx_id" : 2000000000000000073,
"tx_status" : 2,
"tx_hash" : "0xa89caddce27781cb84efe669e3f53bc3e9b2b42ff1096e5496e82b9a15b7ac62",
"from_wallet_address" : "0x38f998d033990a315b08AFc0F78059Fb7D11Dc4d"
}'
```
Last updated