@shield3/sky-safe-cli
v0.1.5
Published
CLI for Safe transaction hash calculation and verification
Maintainers
Readme
@shield3/sky-safe-cli
Command-line tool for verifying Safe multisig transaction hashes.
Installation
npm install -g @shield3/sky-safe-cliOr run directly:
npx @shield3/sky-safe-cli verify --address 0x... --nonce 520Usage
# Ethereum mainnet (default)
sky-safe verify \
--address 0xf65475e74C1Ed6d004d5240b06E3088724dFDA5d \
--nonce 520
# Sepolia testnet
sky-safe verify \
--address 0x384937B93ca0dB13f5bC62450f309b31CC48D278 \
--nonce 8 \
--network sepolia
# From local JSON file
sky-safe verify --file examples/gas-token-attack.jsonOptions
| Option | Description | Default |
|--------|-------------|---------|
| --address <address> | Safe contract address | - |
| --nonce <nonce> | Transaction nonce | - |
| --network <network> | Network (ethereum, sepolia) | ethereum |
| --file <path> | Load from JSON file instead of API | - |
Output
The tool displays:
- Transaction data - All parameters with known address labels
- Decoded data - Method and parameters with verification status
- Custom decoder analysis - Protocol-specific explanations (when available)
- Security analysis - Delegate call, gas token, and owner modification warnings
- Hash verification - Independently calculated EIP-712 hashes compared against the API
Computed Hashes
Domain Hash: 0xabcd...
Message Hash: 0x1234...
Safe TX Hash: 0x5678...
Safe Transaction Hash (API): 0x5678...
HASH VERIFIED: Calculated hash matches API hash
This is the hash you should see on your hardware wallet.Development
# From the monorepo root
pnpm --filter @shield3/sky-safe-cli dev verify --address 0x... --nonce 42
# Build
pnpm --filter @shield3/sky-safe-cli buildLicense
AGPL-3.0-only
