Appearance
List whitelists
List whitelists in the same workspace.
| GET | /whitelists |
Query parameters
| Name | Type | Description | Required |
|---|---|---|---|
page | number | Which page to fetch min: 1, max: 9007199254740991 | |
pageSize | number | Page size to use min: 1, max: 30 | |
status | "ACTIVE" | "INACTIVE" | Whitelist status | |
sortBy | | "name" | "status" | "createdAt" | "updatedAt" | Sort by attribute | |
sortOrder | "asc" | "desc" | Sort order |
Response schema
{}>;}
// Current page
page: number;// Next page or null if there is none
next: number | null;// Previous page or null if there is none
prev: number | null;// Max count of items per page
pageSize: number;// Total count of items
total: number;// Array of results
results: Array<{// Internal unique identifier
id: string;// Legacy internal unique identifier (for retro-compatibility)
legacyId: number;// Whitelist name
name: string;// Whitelist status
status: "ACTIVE" | "INACTIVE";addresses: Array<{}>;
// Address name
name: string;// Address currency
currency: string;// Address value
address: string;Optional
// List of destination tags (applicable for Ripple currency)
destinationTags?: Array<string>;// Creation timestamp
createdAt: string;// Last modification timestamp
updatedAt: string;// Whitelist description
description: string | null;Examples
bash
curl \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {jwt}" \
"$API_BASE_URL/whitelists"ts
const url = "<base-url>/whitelists";
const headers = {
"Content-Type": "application/json",
Authorization: "Bearer <jwt>"
};
fetch(url, { headers }).then(res => {
console.log(res)
});python
import requests
url = "<base-url>/whitelists"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer <jwt>"
}
print(requests.get(url, headers=headers))