Simplify post-install and update skill.md for base-mainnet#10
Merged
Conversation
The bootstrap script now copies a default config (base-mainnet with USDC), so users no longer need to configure the network during installation. - Remove Step 1 (Configure network) - Renumber remaining steps (now 3 steps instead of 4) - Update example JSON to show base-mainnet - Remove testnet faucet reference Users can change the network later using x402-config as documented in skill.md. Co-Authored-By: Claude Opus 4.5 <[email protected]>
Changes: - Remove create-wallet tool documentation (only used at install time) - Remove "First-Time Setup" from Common Workflows - Remove get-address call from "Making a Direct Payment" - Update default config to match config-default.toml (base-mainnet) - Add table of available configuration keys for x402-config - Update example outputs to show base-mainnet Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Remove --rpc from pay required options, move to optional - Update pay example to not use explicit --rpc - Update x402curl to show --rpc uses config default - Simplify x402curl example Co-Authored-By: Claude Opus 4.5 <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR simplifies the installation and configuration process by defaulting to base-mainnet network instead of requiring users to choose a network during setup.
Changes:
- Removed network configuration step from post-install process (now uses base-mainnet default)
- Updated step numbering in install.md from 4 steps to 3 steps
- Removed create-wallet tool documentation from skill.md (retained in install.md where it's used)
- Updated all default configuration examples to use base-mainnet with USDC token
- Added a configuration keys reference table to skill.md
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| install.md | Removed Step 1 (network configuration), renumbered remaining steps from 4 to 3, updated example JSON to show base-mainnet defaults |
| skill/skill.md | Removed create-wallet tool documentation and "First-Time Setup" workflow, updated all default configuration examples to base-mainnet, added configuration keys table, removed unnecessary get-address calls from workflows |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Add --gas-price <GWEI> CLI option to override network gas price - Fetch gas price from network if not specified - Apply gas price to both ERC-20 and native ETH transfers - Display gas price in Gwei in status output - Update skill.md documentation Co-Authored-By: Claude Opus 4.5 <[email protected]>
Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Change description to focus on USDC payments - Add important note: 1 USDC = 1000000 tokens - Include examples for converting USDC to token amounts Co-Authored-By: Claude Opus 4.5 <[email protected]>
Remove optional CLI arguments except --gas-price (others use config defaults and are not relevant to agent usage). Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Remove use-network from commands list - Remove use-network example - Remove Available Network Profiles table Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Remove "IMPORTANT: Bootstrap Before First Use" from top - Add "Troubleshooting" section at end for when binaries not found - Simplify bootstrap instructions Co-Authored-By: Claude Opus 4.5 <[email protected]>
- get-address: Balance now shows human units (e.g., "1.5" for 1.5 USDC) - pay: Amount accepts human units (e.g., --amount 1.5 for 1.5 USDC) - Conversion based on token decimals from config (default: 6 for USDC) - Update skill.md documentation with human-readable examples - Remove multiplication note from skill.md Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Handle ".5" format (treat empty integer part as "0") - Handle whitespace in input - Handle empty input with error message - Add unit tests for various float formats: - "1", "1.0", "1.5", "0.5", ".5" - "0.000001" (smallest unit) - "1.1234567" (truncation of extra decimals) Co-Authored-By: Claude Opus 4.5 <[email protected]>
- --max-payment now in human units (e.g., 5 for 5 USDC) - Update example to use --max-payment 5 - Update 402 response format examples to use human units - Remove unnecessary options (rpc, wallet, password) from docs Co-Authored-By: Claude Opus 4.5 <[email protected]>
Updated the skill documentation to include new payment features and improved clarity on configuration handling.
- Fix localhost URLs to use https://link.x402labs.dev - Fix typos: "ffieds" -> "fields", "YOu" -> "You" - Fix max_auto_payment example to use human units ("5" not "5000000") - Remove --password-file mention from Security Notes (not in simplified docs) Co-Authored-By: Claude Opus 4.5 <[email protected]>
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
Changes
install.md
skill/skill.md
🤖 Generated with Claude Code