x402z-get
v0.1.2
Published
CLI helper that pays a 402-protected URL using the x402z SDK and prints the response body.
Downloads
185
Readme
x402z-get
CLI helper that pays a 402-protected URL using the x402z SDK and prints the response body.
Install (workspace)
pnpm -C packages/x402z-get buildUsage
x402z-get <url> [--scheme exact|erc7984-mind-v1]Config
Config file path:
~/.config/x402z-get/config.json
Example:
{
"payerPrivateKey": "0x...",
"relayerRpcUrl": "https://sepolia.infura.io/v3/...",
"preferredMethods": [
"exact.USDC.sepolia",
"erc7984-mind-v1.CONFIDENTIAL_USDC.sepolia"
]
}preferredMethods is an ordered list. The CLI picks the first method that
matches the server’s accepts list.
Examples
x402z-get http://localhost:8080/demo --scheme exactx402z-get http://localhost:8080/demo --scheme erc7984-mind-v1