Adding a trusted address
Adding an address to the trusted list to be able to withdraw 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
currencystringOptionalExample:
Address currency
USDT
networkstringOptionalExample:
Address network
ethereum
addressstringOptionalExample:
The address in the blockchain
0xe68C1e0C4BA59e17fAF970cB7EC69c3dABf25f02
tagstringOptional
Address tag (memo) (relevant only for networks that support the tag, such as Ripple)
aliasstringOptionalExample:
Address alias
My main address
Responses
200Success
application/json
post
POST /api-gateway/personal-addresses/add-trusted-address HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 155
{
"clientId": "user12345",
"currency": "USDT",
"network": "ethereum",
"address": "0xe68C1e0C4BA59e17fAF970cB7EC69c3dABf25f02",
"tag": null,
"alias": "My main address"
}
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