verify_usdt_invoice
Verify and settle a confirmed on-chain USDT/USDC transaction hash (tx_hash) against a PayGate invoice_id via live JSON-RPC receipt log inspection. Idempotent state-changing operation (unlimited free calls, anti-replay enforced): confirms recipient address, token contract, and minimum USD amount, transitions the invoice to paid, extends recurring subscription_expires_at if configured, and dispatches any configured webhook. Returns JSON with ok (boolean), already_paid (boolean), and updated invoice object.
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_usdt_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx_hash | Yes | Confirmed on-chain transaction hash (`0x...` 66-char hex on EVM chains or base58 signature on Solana) transferring USDT/USDC to the invoice's `merchant_wallet`. | |
| invoice_id | Yes | Unique PayGate invoice identifier returned by `create_usdt_invoice` (e.g. `inv_a1b2c3d4e5f6`). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| invoice | No |