chore: add new routes for addresses

This commit is contained in:
2026-02-25 09:55:18 +01:00
parent 03cb05f3a5
commit 1376ce3583
8 changed files with 292 additions and 4 deletions
+7
View File
@@ -503,6 +503,13 @@ export const deleteAddress = async (
return { success: true, message: data.message };
};
export const getAllAddresses = async (): Promise<
{ invalid_address: string; correct_address: string }[]
> => {
const { data } = await apiClient.get(`${V2}/admin/protected/addresses`);
return data.addresses ?? [];
};
// ============================================
// STATS HELPERS
// ============================================