Submit the signed USDC settlement record (step 2 of 2)
submit_usdc_settlementComplete the record: pass the BODY_JSON from prepare_usdc_settlement UNCHANGED and the signature your worker wallet produced over MESSAGE_TO_SIGN. Relays to POST /labor/settle, the same public door any HTTP client uses, with no payment and no key; this server holds no keys and no funds. A body that carries any field beyond workId, workerWallet, paymentTxHash and nonce is refused here. The settlement door reads the chain, then answers: settled, or refused with its reason, in which case nothing was recorded and the job stays open to the real payment. If the chain read outlasts this call, the reply says so; do not sign again, read work_status. Cost and signer: free, no gas; signed by the person's 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": {
"bodyJson": "<bodyJson>",
"signature": "<signature>"
},
"name": "submit_usdc_settlement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bodyJson | Yes | The exact BODY_JSON string from prepare_usdc_settlement, unchanged. | |
| signature | Yes | The 0x… personal_sign output over MESSAGE_TO_SIGN (a smart wallet's wrapped signature can be long). |
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 |