Skip to Content

hydra


Function: ensureCurrencies()

ensureCurrencies(json, assets): object & object & object | object & object & object | object & object & object | object & object & object | { addresses?: string[] | AddressSet | Address[]; coinAmount: string | NumberUnit | { unit: string; value: string; }; coinName: string; confirmations?: number; currencies: {[key: string]: any; }; data?: Record<string, any>; date?: string | number | Date; dropped?: boolean; error?: null | string; feeAmount: string | NumberUnit | { unit: string; value: string; }; feeCoinName: string; from?: string[]; meta?: Record<string, any>; selfSend?: boolean; to?: string; token?: string; tokens?: string[]; txId?: string; } | { addresses?: string[] | AddressSet | Address[]; coinAmount: string | NumberUnit | { unit: string; value: string; }; coinName: string; confirmations?: number; currencies: {[key: string]: any; }; data?: Record<string, any>; date?: string | number | Date; dropped?: boolean; error?: null | string; feeAmount?: undefined; feeCoinName?: undefined; from?: string[]; meta?: Record<string, any>; selfSend?: boolean; to?: string; token?: string; tokens?: string[]; txId?: string; }

Defined in: libraries/models/src/tx/utils.ts:52

Parameters

ParameterType
jsonTxProps
assets{[assetName: string]: any; }

Returns

object & object & object | object & object & object | object & object & object | object & object & object | { addresses?: string[] | AddressSet | Address[]; coinAmount: string | NumberUnit | { unit: string; value: string; }; coinName: string; confirmations?: number; currencies: {[key: string]: any; }; data?: Record<string, any>; date?: string | number | Date; dropped?: boolean; error?: null | string; feeAmount: string | NumberUnit | { unit: string; value: string; }; feeCoinName: string; from?: string[]; meta?: Record<string, any>; selfSend?: boolean; to?: string; token?: string; tokens?: string[]; txId?: string; } | { addresses?: string[] | AddressSet | Address[]; coinAmount: string | NumberUnit | { unit: string; value: string; }; coinName: string; confirmations?: number; currencies: {[key: string]: any; }; data?: Record<string, any>; date?: string | number | Date; dropped?: boolean; error?: null | string; feeAmount?: undefined; feeCoinName?: undefined; from?: string[]; meta?: Record<string, any>; selfSend?: boolean; to?: string; token?: string; tokens?: string[]; txId?: string; }

Start building

XO

Request Demo

Schedule a call with our team

Select a product
Arrow right