File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
python/coinbase-agentkit/coinbase_agentkit/action_providers/blockrun Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff 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
124146List all available models with descriptions. No parameters required.
You can’t perform that action at this time.
0 commit comments