Method Signature
Description
Manually triggers an agent run to perform yield optimization. This is useful when you want to force an immediate rebalancing check instead of waiting for the automatic schedule.Agents automatically optimize on a regular schedule. Use
run() only when you need to trigger an immediate optimization.Parameters
Smart account wallet address to run optimization for.
Return Value
Status of the run operation.
Example
Error Handling
Common Errors
| Error | Cause | Solution |
|---|---|---|
ValidationError: wallet address is required | Missing wallet parameter | Provide a valid wallet address |
GizaAPIError: Agent not active | Agent is not in active state | Activate the agent before running |
GizaAPIError: Run already in progress | Another run is currently executing | Wait for the current run to complete |