check_balance
Retrieve the current USDC balance, KYC tier, and account info of the configured buyer to confirm sufficient funds before calling a service.
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, returns a structured CREDENTIAL_MISSING error with how-to-fix steps (no exception thrown).
Use BEFORE call_service to confirm sufficient funds, especially before a long batch.
Returns: { balanceUsdc, kycTier, email, name }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||