POST
/
nps
/
address
cURL
curl --request POST \
  --url https://apidev.nusd.me/nps/address \
  --header 'BIZ-API-KEY: <api-key>' \
  --header 'Biz-Api-Nonce: <api-key>' \
  --header 'Biz-Api-Signature: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "wallet_id": "e9167870-e18b-4e82-8b87-92ec7ede8e45",
  "chain_id": "BASE_ETH",
  "user_token": "1234-5678-0000"
}
'
{
  "status": 0,
  "data": {
    "user_token": "1234-5678-0000",
    "chain_id": "BASE_ETH",
    "address": "0xdc2e6b357766aa4b66f41dc29598379ce7d61d46",
    "memo": "12345678"
  },
  "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
wallet_id
string
required

钱包id

Example:

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

chain_id
string
required

链 ID

Example:

"BASE_ETH"

user_token
string
required

App内的用户id或token

Example:

"1234-5678-0000"

Response

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

status
integer

状态码,0 表示成功。

Example:

0

data
object

用户充值地址详情

msg
string

错误消息,status 非 0 时存在