- you need foundry installed on your machine for this process, as well as having
forge-std
lib for contract dependencies. - download or copy the
DiagOrder.sol
file below and put it in./script
folder (or any other folder of your choice) - replace the import path with the location of
forge-std/src/Script.sol
on you disk. - replace the
to
address with the arb contract address on the desired network. - replace the
data
with the calldata without leading 0x taken from otel (hyperdx). - save the file and now you can run the following command to get the traces:
forge script path/to/DiagOrder.sol:DiagOrder -vvvvv --fork-url <url> --fork-block-number <blocknumber> --sender <addres>
- replace the
path
with the location of the saved file in previous step,