ucc-sdk
Version:
UnchainedCarrot SDK
19 lines (17 loc) • 572 B
JavaScript
import axios from 'axios';
/**
* Get Customer Hot Wallets
* @function
* @memberof payments
* @param {string} customerId - customerId
* @param {string} usage - usage
* @returns {Promise<any>} Get Customer Hot Wallets Response
*/
async function getHotWallets(customerId, usage = 'ANY') {
const response = await axios.get(
`https://4wm9uqkg41.execute-api.eu-central-1.amazonaws.com/customers/${customerId}/hot-wallets?usage=${usage}`
);
// Return response
return response.data;
}
export const _getHotWallets = getHotWallets;