Skip to main content

partitionCovenantUtxos

HardKAS SDK


HardKAS SDK / tx-builder/src / partitionCovenantUtxos

Function: partitionCovenantUtxos()

partitionCovenantUtxos<T>(utxos): object

Defined in: packages/tx-builder/src/covenant-utxos.ts:41

Splits UTXOs into those a payment may spend and those that belong to a covenant, each in the order given.

Type Parameters​

T​

T

Parameters​

utxos​

readonly T[]

Returns​

object

covenant​

covenant: T[]

spendable​

spendable: T[]