check_balance
Check the current USDC balance, KYC tier, and account info of the configured buyer to confirm sufficient funds before a paid API call.
Instructions
Check the current USDC balance, KYC tier, and account info of the configured buyer.
PRECONDITIONS: • LEMON_CAKE_BUYER_JWT env var must be set. If missing AND no PAY_TOKEN is set, DEMO MODE returns a canned $1.00 demo balance with kycTier="DEMO" so trial users see something instead of an error. With PAY_TOKEN set but no BUYER_JWT, returns a structured CREDENTIAL_MISSING error.
Use BEFORE call_service to confirm sufficient funds, especially before a long batch.
Returns: { balanceUsdc, kycTier, email, name, [mode], [note] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||