sdk.redeemercontext
Home > @blaze-cardano/sdk > 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:
interface RedeemerContext
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
bigint |
Current fee estimate | ||
|
number |
Sorted position of THIS redeemer's subject: - For Spend: index in sortedSpendInputs - For Mint: index in sortedMints - For Reward: index in sortedWithdrawals | ||
|
Array<{ policyId: string; assets: Map<string, bigint>; }> |
Minting policies in canonical sorted order, with their minted assets | ||
|
All spending inputs in canonical sorted order | |||
|
Array<{ rewardAccount: RewardAccount; amount: bigint; }> |
Withdrawals in canonical sorted order |