Generate a deposit address for a reference on a chain
curl --request POST \
--url http://127.0.0.1:44010/v1/crypto/addresses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"network": "base-sepolia",
"reference": "wallet-1"
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({network: 'base-sepolia', reference: 'wallet-1'})
};
fetch('http://127.0.0.1:44010/v1/crypto/addresses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://127.0.0.1:44010/v1/crypto/addresses"
payload = {
"network": "base-sepolia",
"reference": "wallet-1"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://127.0.0.1:44010/v1/crypto/addresses"
payload := strings.NewReader("{\n \"network\": \"base-sepolia\",\n \"reference\": \"wallet-1\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
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))
}{
"network": "base-sepolia",
"chain": "eip155:84532",
"address": "0x260b9Af79220e1b08FcF51c01BD7Fe3db3003924",
"reference": "wallet-1"
}{
"error": {
"code": "invalid_request",
"message": "network: not a supported network name or CAIP-2 chain ID. Supported names: ethereum-sepolia, base-sepolia, ..."
}
}{
"error": {
"code": "unauthorized",
"message": "Missing or invalid API key."
}
}{
"error": {
"code": "invalid_request",
"message": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>"
}
}API Reference
Generate a deposit address for a reference on a chain
Returns the deposit address for the given network and reference. Repeating the same Idempotency-Key with the same body returns the same result; repeating it with a different body returns 409 idempotency_conflict. A new Idempotency-Key with the same network and reference returns the same address.
POST
/
v1
/
crypto
/
addresses
Generate a deposit address for a reference on a chain
curl --request POST \
--url http://127.0.0.1:44010/v1/crypto/addresses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"network": "base-sepolia",
"reference": "wallet-1"
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({network: 'base-sepolia', reference: 'wallet-1'})
};
fetch('http://127.0.0.1:44010/v1/crypto/addresses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://127.0.0.1:44010/v1/crypto/addresses"
payload = {
"network": "base-sepolia",
"reference": "wallet-1"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://127.0.0.1:44010/v1/crypto/addresses"
payload := strings.NewReader("{\n \"network\": \"base-sepolia\",\n \"reference\": \"wallet-1\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
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))
}{
"network": "base-sepolia",
"chain": "eip155:84532",
"address": "0x260b9Af79220e1b08FcF51c01BD7Fe3db3003924",
"reference": "wallet-1"
}{
"error": {
"code": "invalid_request",
"message": "network: not a supported network name or CAIP-2 chain ID. Supported names: ethereum-sepolia, base-sepolia, ..."
}
}{
"error": {
"code": "unauthorized",
"message": "Missing or invalid API key."
}
}{
"error": {
"code": "invalid_request",
"message": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>"
}
}Headers
Body
application/json
Response
The deposit address (new, or replayed for a repeated request).

