Indexer: Transactions for a contract (v1)
getContractTransactionsRetrieve paginated transaction history for a given contract address on VeChain, with optional time range filters and expanded details.
Instructions
Query VeWorld Indexer /api/v1/transactions/contract for transactions interacting with a contract address. Supports pagination.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Zero-based results page number (0 is the first page) | |
| size | No | Results per page (1..150); API default is typically 20 | |
| after | No | Return txs at or after this Unix timestamp (seconds) | |
| before | No | Return txs at or before this Unix timestamp (seconds) | |
| cursor | No | Opaque cursor for fetching the next page when provided by the API | |
| expanded | No | Include decoded clause outputs/logs for richer results, would recommend to set to true to get the full transaction details | |
| direction | No | Sort direction for time-based queries; defaults to 'DESC' (newest first) | |
| contractAddress | Yes | Contract address that the transaction interacted with |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | List response for transactions endpoints | |
| error | No | ||
| network | Yes |