UNPKG

@signumjs/core

Version:

Principal package with functions and models for building Signum Network applications.

26 lines 806 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAssetTransfers = void 0; /** * Use with {@link ApiComposer} and belongs to {@link AssetApi}. * * See details at {@link AssetApi.getAssetTransfers} * * @category factories */ const getAssetTransfers = (service) => (args) => { if (!args.assetId || !args.accountId) { throw new Error('Need at least argument "assetId" or "accountId"'); } const { assetId, accountId, firstIndex, lastIndex } = args; const params = { asset: assetId, account: accountId, includeAssetInfo: true, firstIndex, lastIndex }; return service.query('getAssetTransfers', params); }; exports.getAssetTransfers = getAssetTransfers; //# sourceMappingURL=getAssetTransfers.js.map