UNPKG

@fruitsjs/core

Version:

Principal package with functions and models for building Fruits Eco-Blockchain applications.

32 lines (30 loc) 904 B
import {ChainService} from '../../../service/chainService'; /** * Use with [[ApiComposer]] and belongs to [[AccountApi]]. * * See details at [[AccountApi.generateSendTransactionQRCode]] * * @module core.api.factories */ export const generateSendTransactionQRCode = (service: ChainService): ( receiverId: string, amountNQT?: number, feeSuggestionType?: string, feeNQT?: number, immutable?: boolean ) => Promise<ArrayBufferLike> => ( receiverId: string, amountNQT: number = 0, feeSuggestionType: string = 'standard', feeNQT: number, immutable: boolean ): Promise<ArrayBufferLike> => service.query('generateSendTransactionQRCode', { receiverId, amountNQT, feeSuggestionType, feeNQT, immutable });