Payment-backed ERC-8004 feedback file (paid, x402)
prepare_payment_feedbackChecks on chain that you paid an agent in USDC, then builds the ERC-8004 feedback file with that payment as proof, ready for your wallet to send. Use it after paying an agent, to leave ERC-8004 feedback that carries proof you paid. Give the payment's transaction hash, the agent id and your score; returns the feedback file and the call your wallet sends. Paid per call: 0.50 USDC on Base over x402, no Agoreum account. Call it without payment to get the terms (an isError result holding the x402 PaymentRequired object), then call again with the signed payment in _meta["x402/payment"]; the settlement comes back in _meta["x402/payment-response"]. Nothing is charged if the check fails or the payment does not settle. list_agoreum_tools lists all six with examples.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Your score for the agent, 0 to 100. | |
| comment | No | Optional text for the feedback file, up to 1,000 characters. | |
| tx_hash | Yes | Your USDC payment to the agent: a transaction hash on Base. | |
| agent_id | Yes | The ERC-8004 id of the agent you paid. | |
| endpoint | No | Optional: the endpoint of the agent you called, recorded in the feedback. |