op-txverify is a command-line utility for verifying Safe transactions. It helps users validate Safe multisig transactions by:
- Parsing and presenting transactions in a clearly understandable manner
 - Identifying common addresses and contracts that users interact with
 - Simplifying access by allowing users to input transactions via QR codes
 
The QR scanning functionality provided by op-txverify allows you to verify Safe transactions by scanning QR codes displayed on a web interface. This is especially useful for air-gapped verification where transmitting data to the verification device over bluetooth or USB is not desireable.
To use the QR code scanner:
- Open https://op-txverify.optimism.io on your mobile device.
 - Paste the transaction hash or Safe UI link of the Safe transaction you want to verify.
 - Run the following command on your verification device:
op-txverify qr
 - A browser window will automatically open with the QR scanner interface.
 - Display the QR codes on your mobile device to the QR scanner.
 - After successful scanning, op-txverify will verify the transaction and display the results.
 
- Go to the Releases page
 - Download the appropriate binary for your operating system and architecture
 - Make the binary executable: 
chmod +x op-txverify_[version]_[os]_[arch] - Rename and move the binary to a location in your PATH:
mv op-txverify_[version]_[os]_[arch] /usr/local/bin/op-txverify
 
To verify the integrity of your downloaded binary:
- Download the 
op-txverify_[version]_SHA256SUMSfile from the releases page - Run the verification command and compare with the corresponding entry in the SHA256SUMS file:
sha256sum op-txverify_[version]_[os]_[arch]
 - Compare the two checksums to ensure they match
 
Prerequisites:
- Go 1.23 or later
 - Git
 - GoReleaser
 
Steps:
- Clone the repository:
git clone https://github.com/ethereum-optimism/op-txverify.git cd op-txverify - Build using GoReleaser:
goreleaser build --snapshot --clean
 - The binaries will be available in the 
distdirectory with names like:dist/op-txverify_[version]_[os]_[arch]/op-txverify
 - Install the binary for your platform:
chmod +x dist/op-txverify_[version]_[os]_[arch]/op-txverify mv dist/op-txverify_[version]_[os]_[arch]/op-txverify /usr/local/bin/
 
To verify a downloaded binary against your local build:
- Check the SHA256SUMS file generated in the 
distdirectory:cat dist/op-txverify_[version]_SHA256SUMS
 - Calculate the checksum of your downloaded binary:
sha256sum /path/to/downloaded/op-txverify_[version]_[os]_[arch]
 - Compare the two checksums to ensure they match