Hercle
REST
POST/api/v1/addresses/depositDeprecated

Create Deposit Address

Creates a deposit address for the given asset.

Auth:Bearer <api_key>
Tags:Addresses

Request

cURL
curl -X POST https://publicapi.sandbox.hercle.financial/api/v1/addresses/deposit \
  -H "Authorization: Bearer eyJhb..." \
  -H "Content-Type: application/json" \
  -d '{"key": "value"}'

Headers

NameTypeRequiredDescription
AuthorizationstringYesBearer token for authentication
Content-TypestringYesContent type of the request body

Request Body

Schema

object
asset*:string
// The asset code (e.g., EUR, USD)
network*:string
// The network of the asset (e.g., Sepa, Swift)

Example

{
  "asset": "EUR",
  "network": "Sepa"
}

Response

Success Response Schema

FieldTypeDescription
idstringUnique identifier for the deposit address
namestringSet by the server to the custody asset ID for this asset and network (e.g. BTC, USDC_POLYGON_NXTB); not chosen by the client
userIdstringID of the user who owns the deposit address
assetstringAsset code (e.g., BTC, ETH, USD)
networkstringNetwork name (e.g., Bitcoin, Ethereum)
addressstringThe deposit address
addressParamsobjectAdditional parameters for the deposit address
endUserIdstringEnd user ID associated with the deposit address; empty string when none
refAccountTypestringType of reference account: CRYPTO_ACCOUNT, or an empty string for older addresses
refAccountIdstringCustody reference of the wallet (same value as refAccountDetails.id); empty string for older addresses
refAccountDetailsobject | nullWallet details of the deposit address (see Crypto Deposit Account Details Object); null for older addresses that have none

Crypto Deposit Account Details Object

Blockchain address and details for crypto deposit accounts

FieldTypeDescription
idstringUnique identifier of the crypto deposit account
addressstringBlockchain address for deposits
legacyAddressstring | nullLegacy address format
enterpriseAddressstring | nullEnterprise address
tagstringTag or memo for certain cryptocurrencies
eosAccountNamestringEOS account name
statusstring | nullStatus of the crypto deposit account
activationTxIdstring | nullTransaction ID of the activation transaction

Responses

The deposit address for the asset and network. If one already exists for this asset and network, that same address is returned.

200 application/json
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "BTC",
  "userId": "123e4567-e89b-12d3-a456-426614174000",
  "asset": "BTC",
  "network": "Bitcoin",
  "address": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
  "addressParams": {},
  "endUserId": "",
  "refAccountId": "35",
  "refAccountType": "CRYPTO_ACCOUNT",
  "refAccountDetails": {
    "id": "35",
    "address": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
    "legacyAddress": "",
    "enterpriseAddress": null,
    "tag": "",
    "eosAccountName": "Address BTC",
    "status": null,
    "activationTxId": null
  }
}

API Tester

Test this endpoint directly against the sandbox environment

Get your API key from Hercle Sandbox

https://publicapi.sandbox.hercle.financial/api/v1/addresses/deposit