Skip to main content
Version: Next

tx.redeemercontext

Home > @blaze-cardano/tx > RedeemerContext

RedeemerContext interface

Context provided to deferred redeemer functions during transaction completion. Allows redeemers to reference final sorted indices, fee, and other tx state.

Signature:

export interface RedeemerContext 

Properties

Property

Modifiers

Type

Description

fee

bigint

Current fee estimate

ownIndex

number

Sorted position of THIS redeemer's subject: - For Spend: index in sortedSpendInputs - For Mint: index in sortedMints - For Reward: index in sortedWithdrawals

sortedMints

Array<{ policyId: string; assets: Map<string, bigint>; }>

Minting policies in canonical sorted order, with their minted assets

sortedSpendInputs

TransactionInput[]

All spending inputs in canonical sorted order

sortedWithdrawals

Array<{ rewardAccount: RewardAccount; amount: bigint; }>

Withdrawals in canonical sorted order