What Is an Agent
AnAgent is a resource handle bound to a single smart-account wallet address. Every method on the Agent class operates on that wallet, so you never need to pass the address repeatedly. The Agent encapsulates the full lifecycle of an autonomous yield agent: activation, monitoring, withdrawals, rewards, and protocol management.
How to Get One
There are three ways to obtain anAgent instance, all through the Giza client:
The wallet Property
Every Agent exposes the smart-account address it is bound to:
Method Categories
TheAgent class groups its methods into six categories. Each is documented on its own page.
Lifecycle
Manage the agent’s activation state and trigger runs.Lifecycle
Full method reference with parameters, types, and examples
Monitoring
Track portfolio value, performance history, and APR.Monitoring
Full method reference with parameters, types, and examples
Transactions
Browse transaction history, execution records, and logs. These methods return aPaginator for async iteration.
Withdrawals
Withdraw funds and monitor withdrawal status.Rewards
Claim and inspect accrued rewards. Paginated history uses thePaginator class.
Protocols
View and update the agent’s protocol selection and constraints.Next Steps
Lifecycle
Activation, deactivation, top-ups, and runs
Monitoring
Portfolio, performance, APR, and deposits
Giza Client
Agent factory methods and chain-level queries
Overview
SDK architecture and configuration