Overview
The Agent class provides paginated methods for querying transaction history, execution records, and logs. Each method returns aPaginator instance that supports async iteration, page-based access, and convenience helpers.
transactions()
Returns a paginator over the agent’s on-chain transactions, sorted by date.Signature
Parameters
PaginationOptions
Returns
Paginator<Transaction> — an async-iterable paginator yielding Transaction objects.
Transaction Type
Examples
executions()
Returns a paginator over the agent’s execution records. Each execution contains a list of transactions that were part of that run.Signature
Parameters
PaginationOptions
Returns
Paginator<ExecutionWithTransactionsDTO>
ExecutionWithTransactionsDTO Type
Examples
executionLogs()
Returns a paginator over the logs for a specific execution.Signature
Parameters
string
required
The execution ID to fetch logs for.
Returns
Paginator<LogDTO>
LogDTO Type
Examples
logs()
Returns a paginator over all logs for the agent, across all executions.Signature
Parameters
Returns
Paginator<LogDTO>
Examples
PaginationOptions
All paginated methods accept the same options object.All paginated methods return a
Paginator instance. See the Paginator reference for the full API including async iteration, .page(), and .first().