- you need foundry installed on your machine for this process, as well as having
forge-stdlib for contract dependencies. - download or copy the
DiagOrder.solfile below and put it in./scriptfolder (or any other folder of your choice) - replace the import path with the location of
forge-std/src/Script.solon you disk. - replace the
toaddress with the arb contract address on the desired network. - replace the
datawith 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
pathwith the location of the saved file in previous step,