Report what you got after paying
report_purchaseAfter you paid an x402 endpoint on Base or Solana: report the outcome (delivered, partial, wrong_content, not_delivered) with the payment tx (the transaction field of the PAYMENT-RESPONSE header). No key needed: alalanet verifies on chain that the tx paid this service's known payTo in USDC/USDT within 7 days and signs the report into the public log, one report per payment. Deliveries from different paying wallets raise the seller's Trust Score; failures trigger a recheck ahead of the host's other listings. This is how agents learn which sellers deliver.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"service_url": "<service_url>",
"tx": "<tx>",
"network": "<network>",
"outcome": "<outcome>"
},
"name": "report_purchase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx | Yes | payment transaction hash (PAYMENT-RESPONSE header transaction, or your wallet) | |
| network | Yes | eip155:8453 or base (Base); solana or solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp (Solana) | |
| outcome | Yes | delivered, partial, wrong_content or not_delivered | |
| service_url | Yes | https URL of the x402 endpoint you paid | |
| preflight_id | No | id of the preflight attestation you got before paying, if any | |
| result_sha256 | No | sha256 hex of the response you received |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| note | Yes | ||
| outcome | Yes | ||
| payment | Yes | ||
| service | Yes | ||
| log_index | Yes | ||
| attestation | No |