@fairmint/canton-node-sdk
Version:
Canton Node SDK
19 lines • 713 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetWalletBalance = void 0;
const zod_1 = require("zod");
const core_1 = require("../../../../../core");
/**
* @description Get the current wallet balance including unlocked and locked quantities
* @example
* ```typescript
* const balance = await client.getWalletBalance();
* console.log(`Unlocked: ${balance.effective_unlocked_qty}, Locked: ${balance.effective_locked_qty}`);
* ```
*/
exports.GetWalletBalance = (0, core_1.createApiOperation)({
paramsSchema: zod_1.z.void(),
method: 'GET',
buildUrl: (_params, apiUrl) => `${apiUrl}/api/validator/v0/wallet/balance`,
});
//# sourceMappingURL=get-balance.js.map