Conversation
Features: - show: Display all current configuration - get <KEY>: Get specific config value - set <KEY> <VALUE> [...]: Set one or more config values - use-network <PROFILE>: Apply predefined network profile - list-networks: List available network profiles - list-keys: List all valid config keys Also adds to x402-common: - Config::get() and Config::set() for key-path access - Config::valid_keys() listing all config keys - Config::check_network_config() for missing config detection - MissingConfigPrompt struct for JSON error output Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Load wallet.path and wallet.password_file from config - Add --config/-c flag for custom config path - Use x402_common::Result instead of anyhow - Remove anyhow dependency Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Guides agent through: 1. Check if configuration exists 2. Ask user which network to use 3. Apply network profile with x402-config 4. Verify configuration 5. Get wallet address and inform user to fund it Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implement the x402-config CLI tool for managing x402 configuration.
Commands
show- Display all current configurationget <KEY>- Get specific config valueset <KEY> <VALUE> [...]- Set one or more config valuesuse-network <PROFILE>- Apply predefined network profile (base-sepolia, base-mainnet, etc.)list-networks- List available network profileslist-keys- List all valid config keysx402-common additions
Config::get()andConfig::set()for key-path access (e.g., "network.rpc_url")Config::valid_keys()listing all valid config keysConfig::check_network_config()for detecting missing required configMissingConfigPromptstruct for JSON error output to stderrTest plan
cargo build --release -p x402-configcargo test --allcargo clippy --all -- -D warningscargo fmt --all -- --checkx402-config --helpshows usagex402-config list-networksshows all profilesx402-config use-network base-sepoliaapplies profilex402-config showdisplays configx402-config get network.rpc_urlreturns valueGenerated with Claude Code