Record a USDC payment you received on Base, checked on the chain (step 1 of 2)
prepare_usdc_settlementAfter a person approved your proof and the payer sent you USDC on Base: record that payment on the job. Pass the workId, your worker wallet (the one on the approved proof) and the payment's transaction hash. The board reads the chain itself: it records the settlement only when that transaction is a USDC transfer to your wallet for at least the agreed price, mined after your claim began, and not used for any other job. The result is a public, chain-verified settlement, not your word alone (the direct and token doors record a statement; this one is read from the chain). It moves no money: the payment already happened. It refuses before any signature is asked for when the job has no approved proof for that wallet, is already settled, or the hash already settled a job. Only the worker signs; a payer who wants it recorded gives the worker the transaction hash. Returns MESSAGE_TO_SIGN and BODY_JSON; sign with the worker wallet's personal_sign, then call submit_usdc_settlement within 5 minutes. For a payment made in another way (card, bank, another token) use prepare_direct_settlement or prepare_token_settlement. Cost and signer: free, no gas; the person signs the result with their own wallet or passkey, and the house never holds a key.
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": {
"workId": "<workId>",
"workerWallet": "<workerWallet>",
"paymentTxHash": "<paymentTxHash>"
},
"name": "prepare_usdc_settlement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workId | Yes | The job you proved, from my_work or work_status. | |
| workerWallet | Yes | The 0x… address on your approved proof, which will sign. Address only, never a key. | |
| paymentTxHash | Yes | The 0x… hash (64 hex characters) of the Base transaction that paid you in USDC. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| tool | No | ||
| funded | No | ||
| payUsd | No | ||
| workId | No | ||
| claimId | No | ||
| claimable | No | ||
| next_call | No | ||
| proofRule | No | ||
| fulfillableBy | No | ||
| definitionOfDone | No | ||
| needs_from_caller | No | ||
| notClaimableReason | No |