diff --git a/Cargo.toml b/Cargo.toml index 42a98bc..7b741bb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,5 +36,5 @@ serde_with = { version = "3.7.0", features = ["hex"] } serde_json = "1.0.114" [[bin]] -name = "eth-trie-proofs" +name = "etp-cli" path = "src/bin/cli.rs" diff --git a/README.md b/README.md index 5dd80d8..742918a 100644 --- a/README.md +++ b/README.md @@ -20,21 +20,24 @@ A comprehensive proofs handler for Ethereum trie. Tested with various EIPs inclu - [x] Verify proof ## CLI Tool - The CLI tool supports generating proofs for transactions and receipts. Use the following commands based on your requirements: +Install with: `cargo install --path ./` + +Or, run without installing: `cargo run --bin etp-cli` + + **Generate a Proof via CLI** To generate a proof for a transaction, use the following command: -`cargo run --bin eth-trie-proofs tx [RPC_URL]` +`etp-cli tx [RPC_URL]` To generate a receipt proof: -`cargo run --bin eth-trie-proofs receipt [RPC_URL]` +`etp-cli receipt [RPC_URL]` As a default, `https://ethereum-rpc.publicnode.com` is used as an RPC provider. This will probably work for recent transactions, but it is advised to use a dedicated RPC. - ## Installation Use the following command to add `eth-trie-proofs` to your project: