Settling Fees
Now for quite possibly the entire reason you decided to get into Exchange operation, those juicy fees. Just as before, this really couldn't be easier.
Settling Fees Script
const Network = require('./index');
const network = new Network({
apiUrl: 'https://api.hollaex.network',
apiKey: '<YOUR_API_KEY>',
apiSecret: '<YOUR_API__SECRET_KEY>',
activation_code: '<YOUR_ACTIVATION_CODE>',
});
//settling fees and seeing them
(async () => {
try {
//initialise the network
const init = await network.init();
//settle the accumulated fees since last settling
await network.settleFees()
//get a report on historical fee date
//we could add optional parameters to refine results
console.log(await network.getGeneratedFees())
} catch (err) {
console.log(err);
}
})();
Transfer Assets Script: Output
Last updated