WebSocket
Whitelist Address
Sends a request for the whitelisting of a new address.
Auth:API Key
Tags:
Funding
Addresses
Command Name
WhitelistAddressCommand Arguments
| Field | Type | Required | Description |
|---|---|---|---|
ClientId | string | Required | Custom client ID for tracking (max 36 characters) Example: "my-client-123" |
Name | string | Required | Address recognizable custom name Example: "My BTC Wallet" |
Asset | string | Required | Asset of the Address (e.g.: "BTC" or "EUR") Example: "BTC" |
Address | string | Required | Address Example: "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh" |
Network | string | Required | Address network Example: "Bitcoin" |
ClientIdRequired
Type:
string
Description:
Custom client ID for tracking (max 36 characters)
Example:
"my-client-123"NameRequired
Type:
string
Description:
Address recognizable custom name
Example:
"My BTC Wallet"AssetRequired
Type:
string
Description:
Asset of the Address (e.g.: "BTC" or "EUR")
Example:
"BTC"AddressRequired
Type:
string
Description:
Address
Example:
"bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh"NetworkRequired
Type:
string
Description:
Address network
Example:
"Bitcoin"Command Invocation
Command Arguments Example:
[
"my-client-123",
"My BTC Wallet",
"BTC",
"bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
"Bitcoin"
]Invocation Example:
connection.invoke('WhitelistAddress', 'my-client-123', 'My BTC Wallet', 'BTC', 'bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh', 'Bitcoin')Response Event
Event Name
executionEventsSubject
account.address.registeredAddress whitelisting request response
| Field | Type | Description |
|---|---|---|
httpStatusCode | number | Status code of the request (201: created successfully) |
userId | string | User ID |
addressId | string | Address ID |
message | string | Optional message in case of errors or checks failed |
Example Response
{
"data": {
"httpStatusCode": 201,
"userId": "user-123",
"addressId": "zzzz",
"message": ""
}
}Code Examples
const signalR = require('@microsoft/signalr');
const apiKey = 'YOUR_API_KEY_HERE';
const connection = new signalR.HubConnectionBuilder()
.withUrl('https://publicapi.sandbox.hercle.financial/ExecutionLiveServer/v1', {
accessTokenFactory: () => apiKey,
})
.build();
connection.start()
.then(() => {
console.log('Connected to WebSocket');
// Invoke command
connection.invoke('WhitelistAddress', "my-client-123", "My BTC Wallet", "BTC", "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh", "Bitcoin")
.then(() => {
console.log('Command sent successfully');
})
.catch(err => {
console.error('Command failed:', err);
});
})
.catch(err => {
console.error('Connection failed:', err);
});
// Listen for events
connection.on('executionEvents', (data) => {
console.log('Received event:', data);
});SignalR API Tester
Test this command in the sandbox environment
Disconnected
Your API key is only used locally and never stored