> ## Documentation Index
> Fetch the complete documentation index at: https://api.docs.rocketfi.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get bridge events

> ### Parameters

| Parameter | Required | Type | Description |
| --------- | -------- | ---- | ----------- |
| account | yes | string (hex) | Ethereum-style account address for the sub-account context. |
| roundFrom | yes | string | null | — |
| roundTo | yes | string | null | — |
| paginationData | yes | object | Pagination segment containing `pageNumber` and `pageSize` (serialized per gateway contract). |

### Response fields

| Parameter | Required | Type | Description |
| --------- | -------- | ---- | ----------- |
| `events` | yes | object[] | — |
| `events[].accountAddress` | yes | string (hex) | An Ethereum-style account address (20 bytes). |
| `events[].amount` | yes | string | — |
| `events[].eventType` | yes | string | — |
| `events[].externalAddress` | yes | string | — |
| `events[].externalTokenAddress` | yes | string | — |
| `events[].id` | yes | integer (int64) | — |
| `events[].round` | yes | integer (int64) | — |
| `events[].timestamp` | yes | integer (int64) | — |

### Response example

A sample **`200`** JSON body is attached to this operation as an OpenAPI **example** (Mintlify shows it in the example panel, similar to other exchange API docs).



## OpenAPI

````yaml /specs/openapi.json get /bridge-events
openapi: 3.1.0
info:
  title: RocketFi REST API
  description: REST API for Rocket Chain / RocketFi integrations.
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://beta.rocketfi.io
    description: Beta
  - url: https://testnet.rocket-cluster-1.com
    description: Testnet
  - url: https://devnet.rocket-cluster-1.com
    description: Devnet
security: []
tags:
  - name: Service
    description: Health and availability.
  - name: Market data
    description: Instruments, candles, fees, leverage, and funding data.
  - name: Account
    description: Account nonce, fees, collateral, positions, and orders.
  - name: Trading
    description: Transactions and order activity.
  - name: Vault and bridge
    description: Vaults, history, and bridge events.
  - name: Faucet (testnet)
    description: Testnet faucet for development.
paths:
  /bridge-events:
    get:
      tags:
        - Vault and bridge
      summary: Get bridge events
      description: >-
        ### Parameters


        | Parameter | Required | Type | Description |

        | --------- | -------- | ---- | ----------- |

        | account | yes | string (hex) | Ethereum-style account address for the
        sub-account context. |

        | roundFrom | yes | string | null | — |

        | roundTo | yes | string | null | — |

        | paginationData | yes | object | Pagination segment containing
        `pageNumber` and `pageSize` (serialized per gateway contract). |


        ### Response fields


        | Parameter | Required | Type | Description |

        | --------- | -------- | ---- | ----------- |

        | `events` | yes | object[] | — |

        | `events[].accountAddress` | yes | string (hex) | An Ethereum-style
        account address (20 bytes). |

        | `events[].amount` | yes | string | — |

        | `events[].eventType` | yes | string | — |

        | `events[].externalAddress` | yes | string | — |

        | `events[].externalTokenAddress` | yes | string | — |

        | `events[].id` | yes | integer (int64) | — |

        | `events[].round` | yes | integer (int64) | — |

        | `events[].timestamp` | yes | integer (int64) | — |


        ### Response example


        A sample **`200`** JSON body is attached to this operation as an OpenAPI
        **example** (Mintlify shows it in the example panel, similar to other
        exchange API docs).
      operationId: get_bridge_events
      parameters:
        - name: account
          in: path
          required: true
          schema:
            oneOf:
              - type: 'null'
              - $ref: '#/components/schemas/AccountAddress'
          description: Ethereum-style account address for the sub-account context.
        - name: roundFrom
          in: path
          required: true
          schema:
            type:
              - string
              - 'null'
        - name: roundTo
          in: path
          required: true
          schema:
            type:
              - string
              - 'null'
        - name: paginationData
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/PaginationData'
          description: >-
            Pagination segment containing `pageNumber` and `pageSize`
            (serialized per gateway contract).
      responses:
        '200':
          description: Bridge events by account or for round range
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetBridgeEventsResponse'
              example:
                events:
                  - round: 100
                    timestamp: 1704067200000
                    accountAddress: '0x0000000000000000000000000000000000000001'
                    externalAddress: '0x0000000000000000000000000000000000000abc'
                    externalTokenAddress: '0x0000000000000000000000000000000000000def'
                    id: 1
                    amount: '100.0'
                    eventType: Deposit
components:
  schemas:
    AccountAddress:
      type: string
      format: hex
      description: An Ethereum-style account address (20 bytes).
    PaginationData:
      type: object
      properties:
        pageNumber:
          $ref: '#/components/schemas/usize'
        pageSize:
          $ref: '#/components/schemas/usize'
    GetBridgeEventsResponse:
      type: object
      required:
        - events
      properties:
        events:
          $ref: '#/components/schemas/BridgeEventsSetClientView'
    usize:
      type: integer
      minimum: 0
    BridgeEventsSetClientView:
      type: array
      items:
        $ref: '#/components/schemas/BridgeEventClientView'
    BridgeEventClientView:
      type: object
      required:
        - round
        - timestamp
        - accountAddress
        - externalAddress
        - externalTokenAddress
        - id
        - amount
        - eventType
      properties:
        accountAddress:
          $ref: '#/components/schemas/AccountAddress'
        amount:
          type: string
        eventType:
          $ref: '#/components/schemas/BridgeEventType'
        externalAddress:
          type: string
        externalTokenAddress:
          type: string
        id:
          type: integer
          format: int64
          minimum: 0
        round:
          type: integer
          format: int64
          minimum: 0
        timestamp:
          $ref: '#/components/schemas/u64'
    BridgeEventType:
      type: string
      enum:
        - Deposit
        - Withdraw
    u64:
      type: integer
      format: int64
      minimum: 0

````