Skip to main content

DiscoverUtxosInput

HardKAS SDK


HardKAS SDK / tx-builder/src / DiscoverUtxosInput

Interface: DiscoverUtxosInput

Defined in: packages/tx-builder/src/kaspa-wallet-adapter.ts:183

One-shot UTXO discovery over a wasm RpcClient with upstream-authoritative coinbase-maturity filtering (via k.getNetworkParams(networkId)). Replaces the HardKAS pattern of calling rpc.getUtxosByAddress(addr) + filtering !u.isCoinbase || u.blockDaaScore + N < virt with an inlined maturity N.

Prefer createUtxoContext when the caller needs live UTXO tracking (mature/pending) and event notifications. Use this helper only for a single synchronous read.

Properties​

address​

readonly address: string

Defined in: packages/tx-builder/src/kaspa-wallet-adapter.ts:186


includeImmatureCoinbase?​

readonly optional includeImmatureCoinbase?: boolean

Defined in: packages/tx-builder/src/kaspa-wallet-adapter.ts:188

When true, skip the mature-only filter and return all UTXOs (mature + immature coinbases).


networkId​

readonly networkId: string

Defined in: packages/tx-builder/src/kaspa-wallet-adapter.ts:185


wasmRpc​

readonly wasmRpc: any

Defined in: packages/tx-builder/src/kaspa-wallet-adapter.ts:184