Skip to Content
Hydra@exodus/modelsUtxoCollection

UtxoCollection

class

UtxoCollection

Constructor

constructor
UtxoCollection(__namedParameters: ConstructorParams): UtxoCollection

Parameters:

__namedParameters: ConstructorParams

Properties

currency?
_isInstance
any
isInstance
any

Methods

[iterator]
[iterator](): Generator

Returns:

Generator
addUtxo
addUtxo(utxo: Utxo, addressMap: AddressMap): UtxoCollection

Parameters:

utxo: Utxo
addressMap: AddressMap
clone
difference
difference(utxoCol: UtxoCollection): UtxoCollection

Parameters:

equals
equals(utxoCol: UtxoCollection): boolean

Parameters:

Returns:

boolean
filter
filter(predicate: any): UtxoCollection

Parameters:

predicate: any
getAddressesForTxId
getAddressesForTxId(txId: string): AddressSet

Parameters:

txId: string

Returns:

AddressSet
getAddressPathsMap
getAddressPathsMap(): any

Returns:

any
getAddressUtxos
getAddressUtxos(address: string | Address): UtxoCollection

Parameters:

address: string | Address
getTxIdUtxos
getTxIdUtxos(txId: string): UtxoCollection

Parameters:

txId: string
hasAddressUtxos
hasAddressUtxos(address: string): boolean

Parameters:

address: string

Returns:

boolean
inspect
inspect(): string

Returns:

string
isEmpty
isEmpty(): boolean

Returns:

boolean
merge

Parameters:

removeAddressUtxos
removeAddressUtxos(address: string | Address): UtxoCollection

Parameters:

address: string | Address
select
select(amount: NumberUnit, feeEstimator: any): undefined | UtxoCollection[]

Parameters:

amount: NumberUnit
feeEstimator: any

Returns:

undefined | UtxoCollection[]
setAddressUtxos
setAddressUtxos(address: string | Address, utxos: UtxoCollection | Utxo[], __namedParameters: any): UtxoCollection

Parameters:

address: string | Address
utxos: UtxoCollection | Utxo[]
__namedParameters: any
toArray
toArray(): Utxo[]

Returns:

Utxo[]
toJSON
toJSON(): Record

Returns:

Record
toPriorityOrderedArray
toPriorityOrderedArray(descending: boolean): Utxo[]

Parameters:

descending: boolean

Returns:

Utxo[]
union

Parameters:

unionOverwrite
unionOverwrite(utxos: UtxoCollection): UtxoCollection

Parameters:

updateConfirmations
updateConfirmations(txs: Tx[]): UtxoCollection

Parameters:

txs: Tx[]
[hasInstance]
[hasInstance](x: any): any

Parameters:

x: any

Returns:

any
createEmpty
createEmpty(options: any): UtxoCollection

Parameters:

options: any
fromArray
fromArray(utxoArray: undefined | null | RawUtxo[], __namedParameters: any): UtxoCollection

Parameters:

utxoArray: undefined | null | RawUtxo[]
__namedParameters: any
fromJSON
fromJSON(json: string | UtxoCollectionJson, __namedParameters: any): UtxoCollection

Parameters:

json: string | UtxoCollectionJson
__namedParameters: any

Accessors

addresses
empty
size
txIds
value
[ModelIdSymbol]

Start building

XO

Request Demo

Schedule a call with our team

Select a product
Arrow right

Start building
Grateful

Contact Us

We're here to help