transferCurrency()

Transfer currency from authenticated user to the specified receiver

Parameters

export type TransferCurrencyProps = {
    currencyId: string;
    amount: number;
    receiver: string;
    walletUserId?: string | undefined;
}

Examples

const balance = await assetlayer.currencies.transferCurrency({
    currencyId: 'currencyId',
    amount: 100,
    receiver: 'receiver's userId'
});

Return Types

type ReturnType = number;

Last updated