Wallet
Get the list of assets
const assets = await slyk.asset.list({
all: true,
filter: { enabled: 'true' },
});
const assetList = assets.results;Get the user's balance
const { user } = await slyk.auth.validate({ token });
const balance = await slyk.wallet.balance(user.primaryWalletId);Get the wallet activity
const activity = await slyk.wallet.activity(user.primaryWalletId, {
page: {
number: pageNumber,
size: pageSize,
},
});
const activityList = activity.results;
const activityTotal = activity.total;Get the featured products
Put it all together
Last updated