Skip to content

stealthUtxoSubstateId

stealthUtxoSubstateId(resourceAddress, commitment): string

Defined in: ootle/src/stealth/substate-parse.ts:32

Compose a stealth UTXO substate id from a resource address and a 32-byte commitment.

The id format is utxo_{resourceHex}_{commitmentHex}, where resourceHex is the resource address with its resource_ prefix stripped (a bare hex string is accepted verbatim). This is the inverse of commitmentOf and matches the id the IndexerProvider.getStealthUtxo fetch composes, so the spend builder can register a stealth input as a tx input without reaching into the concrete indexer client.

string

The resource address (resource_<hex>) or a bare hex string.

Uint8Array

The output’s 32-byte Pedersen commitment.

string

The utxo_{resourceHex}_{commitmentHex} substate id.