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"
}'
```
key
data type
desc.
return
message
desc.
0
success
성공
18003
Redis Swap set error
Swap 정보 임시 저장 실패
18005
Redis swap get error
from_wallet_address에 해당하는 swap 정보가 존재하지 않는다.
18100
db member point scan error
Point 정보 조회 실패
18107
db mod transaction exchangegoods error
정보 저장 실패
18110
db swap complete error
정보 저장 실패
32202
Unknown swap error
내부 서버 에러
Last updated