Getting an address
Last updated
Last updated
By using this method you can:
Get the address for the user in the specified coin and network. When the request is repeated, the previously created address is returned, which will have isActive: true
Generate a new address for the user in the specified coin and network, when specifying the parameter renewAddress
. The new address will have isActive: true
, previously generated addresses with the same coin and network will have isActive: false
Note: At any time, a user can have only one active address in particular coin and network. Deposits and withdrawals work at all addresses, regardless of the parameter isActive
Public API-key
Signing the request body with a private API-key
Request content type
application/json
Request body to get or regenerate the address for the user
User ID
fece0beb-c8ee-4653-8f29-39bae14612c3
Address coin
USDT
Address network
ethereum
If set to true a new address will be issued to the user, the old one will become inactive
POST /api-gateway/personal-addresses/get-user-address HTTP/1.1
Host: app.apollopayment.io
Content-Type: application/json
Accept: */*
Content-Length: 104
{
"id": "fece0beb-c8ee-4653-8f29-39bae14612c3",
"currency": "USDT",
"network": "ethereum",
"renewAddress": true
}
{
"success": true,
"response": {
"id": "68436be9-b90b-49c2-ae81-8beaf78fdc1f",
"userId": "308f853c-47f9-4acf-988a-f5f782e4e740",
"currency": "USDT",
"network": "ethereum",
"address": "0x515b72ed8a97f42c568d6a143232775018f133c8",
"tag": null,
"balance": "1234.1234",
"isActive": true
}
}