Skip to main content
GET
Get messages
Pagination depends on the filter:
  • No block filter: page with cursor. Omit it for the first page, then pass nextCursor or prevCursor from the response.
  • With block: 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

block
string

Filter by block: a block number, a block hash, or pre_confirmed.

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

Filter by contract address (0x-prefixed).

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

Message direction: 0 for L1→L2, 1 for L2→L1.

cursor
string

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

timestampFrom
integer | null

Earliest message time to include (unix seconds, inclusive). Can't be combined with block.

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

Latest message time to include (unix seconds, inclusive). Can't be combined with block.

Required range: 0 <= x <= 2147483647
page
integer
default:1

Page number. Only used with block; other lists page with cursor.

pageSize
integer
default:25

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

Response

Successfully retrieved messages

items
object[]
required
nextCursor
string | null
required
prevCursor
string | null
required