Skip to content

Commit 344dabb

Browse files
committed
docs: Add get_usdc_balance action to README
1 parent 9b368f0 commit 344dabb

File tree

1 file changed

+22
-0
lines changed
  • python/coinbase-agentkit/coinbase_agentkit/action_providers/blockrun

1 file changed

+22
-0
lines changed

python/coinbase-agentkit/coinbase_agentkit/action_providers/blockrun/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,28 @@ result = agentkit.execute_action("chat_completion", {
119119
})
120120
```
121121

122+
### `get_usdc_balance`
123+
124+
Check your wallet's USDC balance on Base before making requests.
125+
126+
```python
127+
result = agentkit.execute_action("get_usdc_balance", {})
128+
```
129+
130+
**Response:**
131+
```json
132+
{
133+
"success": true,
134+
"balance": 5.123456,
135+
"formatted_balance": "5.123456 USDC",
136+
"wallet_address": "0x...",
137+
"usdc_contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
138+
"network": "base-mainnet"
139+
}
140+
```
141+
142+
If balance is low (< 0.10 USDC), a warning and funding suggestions are included.
143+
122144
### `list_models`
123145

124146
List all available models with descriptions. No parameters required.

0 commit comments

Comments
 (0)