hedera-mirror-node icon indicating copy to clipboard operation
hedera-mirror-node copied to clipboard

Add new `/api/v1/contracts/results/{transactionIdOrHash}/opcodes` endpoint

Open georgi-l95 opened this issue 1 year ago • 0 comments

As part of the work package to support tracing transactions and externalizing the executed opcodes, we'd need to add new endpoint on path /api/v1/contracts/results/{transactionIdOrHash}/opcodes, however important detail should be that this endpoint will be disabled by default. Can be used and enabled only on local or custom networks and won't be available on the official public ones. Spring supports this, one example how we can achieve this behaviour is https://docs.spring.io/spring-boot/reference/features/developing-auto-configuration.html#features.developing-auto-configuration.condition-annotations.property-conditions

Current contract call route can be found here. New route can be influenced by it, we should also add rate limiting and hash validation.

More info can be found here.

georgi-l95 avatar Apr 25 '24 11:04 georgi-l95