The following variables provide metadata about the current transaction and its inputs during validation:
// Transaction Level
int tx.version; // Transaction version (1 or 2)
int tx.locktime; // nLocktime field
// Input Level (Current Evaluation Context)
int this.activeInputIndex; // Index of the input currently being evaluated
bytes this.activeBytecode; // Contract bytecode of the input currently being evaluated
// Transaction Inputs Array
int tx.inputs.length; // Total number of inputs
// Specific Input Properties (where i is the index)
int tx.inputs[i].value; // Value in satoshis
bytes tx.inputs[i].lockingBytecode; // scriptPubKey
bytes tx.inputs[i].unlockingBytecode; // scriptSig
bytes32 tx.inputs[i].outpointTransactionHash; // Hash of the locking transaction
int tx.inputs[i].outpointIndex; // Index in the locking transaction
int tx.inputs[i].sequenceNumber; // nSequence number
bytes tx.inputs[i].tokenCategory; // Token category (unreversed byte-order)
bytes tx.inputs[i].nftCommitment; // NFT commitment data
int tx.inputs[i].tokenAmount; // Amount of fungible tokens (max 64-bit int)