Is it somehow possible to get the current transaction's index in the block from within Solidity? or to derive this in some indirect way?


No, it is not possible since such opcode doesn't exist. There's no opcode that can identify a transaction within a block from the EVM side.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.