rust-x402 0.3.0

HTTP-native micropayments with x402 protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  "target_url": "https://api.example.com",
  "amount": 0.01,
  "pay_to": "0x1234567890123456789012345678901234567890",
  "description": "API access fee",
  "mime_type": "application/json",
  "max_timeout_seconds": 60,
  "facilitator_url": "https://x402.org/facilitator",
  "testnet": true,
  "headers": {
    "X-Custom-Header": "x402-proxy",
    "User-Agent": "x402-proxy/1.0"
  },
  "cdp_api_key_id": "",
  "cdp_api_key_secret": ""
}