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
Parameter | Type |
---|---|
json | TxProps |
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
; }