xenarch_check_gate
Check if a URL or domain has an x402 payment gate. Input:| Parameter | Type | Description |
|---|---|---|
url | string | URL or domain to check. Accepts https://example.com/article or example.com. |
xenarch_pay
Execute a USDC micropayment on Base L2 to access gated content. Input:| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | URL or domain to pay for. Must have an active gate. |
amount | string | No | Override amount in USD (e.g., "0.01"). Defaults to gate price. |
- Checks for active gate (calls
xenarch_check_gateinternally) - Verifies USDC balance
- Approves USDC on the splitter contract
- Calls
split(collector, amount)on-chain - Submits tx hash to the verify endpoint
- Returns access token
xenarch_get_history
List past USDC micropayments made by this wallet. Input:| Parameter | Type | Required | Description |
|---|---|---|---|
domain | string | No | Filter by domain (e.g., "example.com"). Omit for all. |
limit | number | No | Max records (1-100, default 10). |