UNPKG

@stratosphere-network/wallet

Version:

Wallet module for StratoSphere SDK

28 lines 893 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WalletService = void 0; const base_service_1 = require("../base-service"); class WalletService extends base_service_1.BaseService { async getTokenBalance(request) { return this.authenticatedRequest({ method: "GET", url: "/wallet/token-balance", params: { token: request.token, ...(request.chain && { chain: request.chain }), }, }); } async getChainBalance(request) { const options = { method: "GET", url: "/wallet/chain-balance", }; if (request?.chain) { options.params = { chain: request.chain }; } return this.authenticatedRequest(options); } } exports.WalletService = WalletService; //# sourceMappingURL=wallet.js.map