Skip to main content

What Is an Agent

An Agent 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 an Agent instance, all through the Giza client:

The wallet Property

Every Agent exposes the smart-account address it is bound to:
This is the address used in all API calls made by the agent. It is set at construction time and cannot be changed.

Method Categories

The Agent 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 a Paginator for async iteration.

Withdrawals

Withdraw funds and monitor withdrawal status.

Rewards

Claim and inspect accrued rewards. Paginated history uses the Paginator 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