POST
/
nps
/
withdraw
cURL
curl --request POST \
  --url https://apidev.nusd.me/nps/withdraw \
  --header 'BIZ-API-KEY: <api-key>' \
  --header 'Biz-Api-Nonce: <api-key>' \
  --header 'Biz-Api-Signature: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "request_id": "d8551182-0aee-4346-929e-05c99081352a",
  "wallet_id": "e9167870-e18b-4e82-8b87-92ec7ede8e45",
  "to": "0xdc2e6b357766aa4b66f41dc29598379ce7d61d46",
  "amount": "10.08",
  "chain_id": "BASE_ETH",
  "token_id": "BASE_USDT"
}
'
{
  "status": 0,
  "data": {
    "transaction_id": "28f2505c-55ab-4fc7-8620-152c4045981a",
    "request_id": "9bfa5014-2f12-4eb8-b979-3cf8cb947b45"
  },
  "msg": "<string>"
}

Authorizations

BIZ-API-KEY
string
header
required

API Key,请求需在请求头中携带。

Biz-Api-Nonce
string
header
required

时间戳,请求需在请求头中携带。

Biz-Api-Signature
string
header
required

签名串,请求需在请求头中携带。

Body

application/json
request_id
string
required

请求方的id,需要唯一

Example:

"d8551182-0aee-4346-929e-05c99081352a"

wallet_id
string
required

提币的钱包id

Example:

"e9167870-e18b-4e82-8b87-92ec7ede8e45"

to
string
required

提币至的地址

Example:

"0xdc2e6b357766aa4b66f41dc29598379ce7d61d46"

amount
number<float>
required

提币数量

Example:

"10.08"

chain_id
string
required

链 ID

Example:

"BASE_ETH"

token_id
string
required

币种唯一标识

Example:

"BASE_USDT"

payer
string

手续费承担方,默认为用户承担

  • App: 项目方承担
  • User: 用户承担
Example:

"App"

Response

请求成功,返回提币交易id

status
integer

状态码,0 表示成功。

Example:

0

data
object

提币详情

msg
string

错误消息,status 非 0 时存在