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?

1 Answer 1


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 and acknowledge you have read our privacy policy.

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