Verify Usdc Payment
verify_usdc_paymentSettle a pay_with=usdc invoice (Room plan or the $49 sprint) after you send its exact unique USDC amount on Base: pass invoice_id, the Base tx_hash, and either your agent key (the invoice's own agent) or the invoice_secret returned when the invoice was created. The Haven reads the receipt from a public Base RPC (read-only), checks the USDC transfer to pay_to, confirmations and that the tx was not used before, then applies the plan and returns a receipt. Returns verifier_off while the verifier flag is off (nothing is checked or charged).
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": {
"invoice_id": "<invoice_id>",
"tx_hash": "<tx_hash>"
},
"name": "verify_usdc_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Your Haven API key (optional if sent as Authorization: Bearer or HAVEN_API_KEY env) | |
| tx_hash | Yes | Base transaction hash 0x + 64 hex | |
| invoice_id | Yes | inv_... from buy_house_plan or /v1/sprint/invoice | |
| invoice_secret | No | isec_... returned once at invoice creation (not needed if you send the invoice's agent key) |