Skip to main content
GET
Get transactions
Pagination depends on the filter:
  • No block and no rejected: page with cursor. Omit it for the first page, then pass nextCursor or prevCursor from the response.
  • With block or rejected=true: page with page and pageSize. The response includes lastPage.

Authorizations

x-api-key
string
header
required

API key for authentication. Get your key at https://voyager.online/plans

Query Parameters

page
integer
default:1

Page number. Only used with block or rejected=true; other lists page with cursor.

pageSize
integer
default:25

Number of items per page. Available options: 10, 25, 50, 100.

to
string

Filter transactions sent to a specific contract address.

Pattern: ^(0x[0-9a-fA-F]{1,66})$
block
string

Filter by block: a block number, a block hash (0x-prefixed), or pre_confirmed for pending transactions.

type
enum<string>

Filter by transaction type: DEPLOY (0), INVOKE (1), DECLARE (2), L1_HANDLER (3), DEPLOY_ACCOUNT (4). Ignored when to is set. null is the same as omitting it.

Available options:
0,
1,
2,
3,
4,
null
rejected
enum<string>

Set to true to return only rejected transactions. With to, returns that contract's rejected transactions. Without to, it is ignored when block or type is set. Defaults to false.

Available options:
true,
false
cursor
string

Cursor from a previous response's nextCursor or prevCursor. Omit for the first page. Can't be combined with block or rejected.

blockStart
integer | null

First block to include (inclusive). For a single block, set blockStart and blockEnd to the same number. Can't be combined with block or rejected.

Required range: 0 <= x <= 2147483647
blockEnd
integer | null

Last block to include (inclusive). Can't be combined with block or rejected.

Required range: 0 <= x <= 2147483647
timestampFrom
integer | null

Earliest time to include (unix seconds, inclusive), converted to the matching block range. Can't be combined with block, rejected, or blockStart/blockEnd.

Required range: 0 <= x <= 2147483647
timestampTo
integer | null

Latest time to include (unix seconds, inclusive).

Required range: 0 <= x <= 2147483647

Response

Successfully retrieved transactions

items
object[]
required
lastPage
number
required