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"
}
'import requests
url = "https://apidev.nusd.me/nps/address"
payload = {
"wallet_id": "e9167870-e18b-4e82-8b87-92ec7ede8e45",
"chain_id": "BASE_ETH",
"user_token": "1234-5678-0000"
}
headers = {
"BIZ-API-KEY": "<api-key>",
"Biz-Api-Nonce": "<api-key>",
"Biz-Api-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'BIZ-API-KEY': '<api-key>',
'Biz-Api-Nonce': '<api-key>',
'Biz-Api-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
wallet_id: 'e9167870-e18b-4e82-8b87-92ec7ede8e45',
chain_id: 'BASE_ETH',
user_token: '1234-5678-0000'
})
};
fetch('https://apidev.nusd.me/nps/address', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apidev.nusd.me/nps/address"
payload := strings.NewReader("{\n \"wallet_id\": \"e9167870-e18b-4e82-8b87-92ec7ede8e45\",\n \"chain_id\": \"BASE_ETH\",\n \"user_token\": \"1234-5678-0000\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("BIZ-API-KEY", "<api-key>")
req.Header.Add("Biz-Api-Nonce", "<api-key>")
req.Header.Add("Biz-Api-Signature", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("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")
.body("{\n \"wallet_id\": \"e9167870-e18b-4e82-8b87-92ec7ede8e45\",\n \"chain_id\": \"BASE_ETH\",\n \"user_token\": \"1234-5678-0000\"\n}")
.asString();{
"status": 0,
"data": {
"user_token": "1234-5678-0000",
"chain_id": "BASE_ETH",
"address": "0xdc2e6b357766aa4b66f41dc29598379ce7d61d46",
"memo": "12345678"
},
"msg": "<string>"
}{
"status": 0,
"data": {
"user_token": "1234-5678-0000",
"chain_id": "BASE_ETH",
"address": "0xdc2e6b357766aa4b66f41dc29598379ce7d61d46",
"memo": "12345678"
},
"msg": "<string>"
}Payin (Collect)
Get or create deposit address
Get the user’s deposit address. If an address already exists for the given ID, it is returned directly; otherwise, a new address is created and returned.
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"
}
'import requests
url = "https://apidev.nusd.me/nps/address"
payload = {
"wallet_id": "e9167870-e18b-4e82-8b87-92ec7ede8e45",
"chain_id": "BASE_ETH",
"user_token": "1234-5678-0000"
}
headers = {
"BIZ-API-KEY": "<api-key>",
"Biz-Api-Nonce": "<api-key>",
"Biz-Api-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'BIZ-API-KEY': '<api-key>',
'Biz-Api-Nonce': '<api-key>',
'Biz-Api-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
wallet_id: 'e9167870-e18b-4e82-8b87-92ec7ede8e45',
chain_id: 'BASE_ETH',
user_token: '1234-5678-0000'
})
};
fetch('https://apidev.nusd.me/nps/address', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apidev.nusd.me/nps/address"
payload := strings.NewReader("{\n \"wallet_id\": \"e9167870-e18b-4e82-8b87-92ec7ede8e45\",\n \"chain_id\": \"BASE_ETH\",\n \"user_token\": \"1234-5678-0000\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("BIZ-API-KEY", "<api-key>")
req.Header.Add("Biz-Api-Nonce", "<api-key>")
req.Header.Add("Biz-Api-Signature", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("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")
.body("{\n \"wallet_id\": \"e9167870-e18b-4e82-8b87-92ec7ede8e45\",\n \"chain_id\": \"BASE_ETH\",\n \"user_token\": \"1234-5678-0000\"\n}")
.asString();{
"status": 0,
"data": {
"user_token": "1234-5678-0000",
"chain_id": "BASE_ETH",
"address": "0xdc2e6b357766aa4b66f41dc29598379ce7d61d46",
"memo": "12345678"
},
"msg": "<string>"
}{
"status": 0,
"data": {
"user_token": "1234-5678-0000",
"chain_id": "BASE_ETH",
"address": "0xdc2e6b357766aa4b66f41dc29598379ce7d61d46",
"memo": "12345678"
},
"msg": "<string>"
}Authorizations
API key. Must be included in the request header.
Timestamp. Must be included in the request header.
Signature string. Must be included in the request header.
Body
application/json
⌘I