Get account credit balance
get_credit_balanceRead one sender's account credit balance in USDC cents.
Free to call, no authentication. Credits come from refunds that could not be sent on-chain.
Behavior: read-only, never raises. found=false and cents=0 when the address never held credit.
Parameters: the balance is tied to the sender address, not to a job key.
When to use: after refund_job, to see whether the refund landed on-chain
or as credit.
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": {
"sender": "<sender>"
},
"name": "get_credit_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sender | Yes | Base address (0x-prefixed) whose credit balance you want. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cents | Yes | credit balance in USDC cents | |
| found | Yes | false when the sender has no credit record | |
| sender | No | ||
| updated_at | No |