Getting a list of trusted addresses
Getting a list of trusted user addresses to which payments can be made using the payment widget
Header parameters
x-api-public-keystringOptional
Public API-key
x-api-signaturestringOptional
Signing the request body with a private API-key
Content-typestringOptionalExample:
Request content type
application/json
Body
clientIdstringOptionalExample:
User ID in the merchant system
user12345
currencystring[]OptionalExample:
An array of coins to search for
USDT
networkstring[]OptionalExample:
Array of networks to search for
ethereum
Responses
200Success
application/json
post
POST /api-gateway/personal-addresses/get-trusted-addresses HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 67
{
"clientId": "user12345",
"currency": [
"USDT"
],
"network": [
"ethereum"
]
}
200Success
{
"success": true,
"response": [
{
"id": "87887ec8-11f1-466d-9aa3-879bf3fb84f7",
"clientId": "user12345",
"currency": "USDT",
"network": "ethereum",
"address": "0xe68C1e0C4BA59e17fAF970cB7EC69c3dABf25f02",
"tag": null,
"alias": "My main address",
"createdAt": "2025-06-09T13:18:11.535Z"
}
]
}
Last updated