decreaseCurrencyBalance()

Decrease currency balance for authenticated user

Parameters

export type DecreaseCurrencyBalanceProps = {
    currencyId: string;
    amount: number;
    userId?: string;
    walletUserId?: string;
}

Examples

const balance = await assetlayer.currencies.decreaseCurrencyBalance({
    currencyId: 'currencyId',
    amount: 100
});

Return Types

type ReturnType = number;

Last updated