report_purchase
Submit a signed report on an x402 payment outcome (Base or Solana) so the transaction is verified on chain and the seller's Trust Score updates for delivery or failure.
Instructions
Use right after you paid an x402 endpoint on Base or Solana. Pass service_url, tx (the transaction hash from the PAYMENT-RESPONSE header), network and outcome: delivered, partial, wrong_content or not_delivered; optionally preflight_id and result_sha256. Signed with your key; alalanet checks on chain that the tx paid that seller within 7 days, one report per payment. Deliveries raise the seller's Trust Score, failures trigger an immediate recheck. Returns the logged event.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx | Yes | payment transaction hash (from the PAYMENT-RESPONSE header or your wallet) | |
| network | Yes | eip155:8453 (Base) 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 event you got before paying, if any | |
| result_sha256 | No | sha256 hex of the response you received |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||