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

# [23.11.26] Consistent Naming Across the Public API

> Query parameters and response fields moved to camelCase, pagination parameters were unified as page and pageSize, and one path was renamed to kebab-case.

The 23 November 2026 release standardized naming across the Public API so every endpoint follows
the same rules:

* Query parameters and response fields use **camelCase**.
* Path segments use **kebab-case** nouns.
* Pagination uses **`page` + `pageSize`** for numbered pages and **`cursor` + `pageSize`** for
  cursor lists.

## Compatibility Note

This change is **not backward-compatible**. Old names are not accepted as aliases.

> [!WARNING]
>
> Old names fail in two different ways:
>
> <ul>
>   <li>
>     **Optional parameters are silently ignored.** A request that still sends
>     `ps=50` or `from_timestamp=...` returns `200` with that
>     parameter dropped, so you get the default page size or an unfiltered list.
>   </li>
>
>   <li>
>     **Required parameters return `400`.** For example, most NFT endpoints need
>     `contractAddress` (`/nft-contract-balance` needs
>     `ownerAddress`), and `/event-activity` needs
>     `fromAddress` or `toAddress`.
>   </li>
> </ul>
>
> Check every parameter your integration sends, not only the requests that fail.

## 1. Path Rename

| Before | After |
| - | - |
| `GET /message/{msgHash}/bridgeTransactions` | `GET /message/{msgHash}/bridge-transactions` |

The old path returns `404`.

## 2. Pagination Parameters

| Before | After | Endpoints |
| - | - | - |
| `p` | `page` | All numbered-page lists |
| `ps` | `pageSize` | All lists |
| `page_size` | `pageSize` | `/token-transfers`, `/event-activity` |
| `limit` | `pageSize` | `/nft-events`, `/nft-items`, `/nft-contract-balance`, `/nft-transfers` |

Endpoints that used `p`/`ps` before the release:

| Area | Endpoints |
| - | - |
| Transactions, blocks, events, messages | `/txns`, `/meta-txns`, `/blocks`, `/events`, `/messages`, `/message/{msgHash}/bridgeTransactions`, `/tx-activity` |
| Contracts and classes | `/contracts`, `/contracts/{contractAddress}/transfers` (`ps` only), `/classes`, `/classes/verified`, `/classes/{classHash}/contracts` |
| Tokens and NFTs | `/tokens`, `/tokens/{address}/holders`, `/nft-balances`, `/nft-holders`, `/nft-stats`, `/marketplace-stats` |
| Statistics | `/daily-stats` |
| Staking | `/staking/validators`, `/staking/delegators`, `/staking/attestations`, `/staking/wallet-info/activity`, `/staking/validator-details/activity` |

Pagination links returned in responses (for example `pagination.next` on the NFT lists,
`/marketplace-stats`, and `/staking/validators`) use the new names.

## 3. Query Parameter Renames

| Endpoint | Before | After |
| - | - | - |
| `/token-transfers` | `token_address`, `from_address`, `to_address` | `tokenAddress`, `fromAddress`, `toAddress` |
| | `from_block`, `to_block` | `fromBlock`, `toBlock` |
| | `from_timestamp`, `to_timestamp` | `fromTimestamp`, `toTimestamp` |
| | `event_selector`, `invocation_type`, `order_by` | `eventSelector`, `invocationType`, `orderBy` |
| `/event-activity` | `from_address`, `to_address`, `token_type`, `last_id` | `fromAddress`, `toAddress`, `tokenType`, `lastId` |
| | `from_block`, `to_block`, `from_timestamp`, `to_timestamp` | `fromBlock`, `toBlock`, `fromTimestamp`, `toTimestamp` |
| `/tx-activity` | `sender_address`, `from_block` | `senderAddress`, `fromBlock` |
| `/contracts/{contractAddress}/transfers` | `order_by` | `orderBy` |
| `/contracts/{contractAddress}/erc20-balance-history` | `token_address` | `tokenAddress` |
| `/nft-events`, `/nft-balances`, `/nft-holders` | `contract_address`, `token_id` | `contractAddress`, `tokenId` |
| `/nft-items`, `/nft-contract-balance` | `contract_address`, `owner_address` | `contractAddress`, `ownerAddress` |
| `/nft-transfers` | `contract_address` | `contractAddress` |

## 4. Response Field Renames

Every snake\_case field below became camelCase by the usual rule: `from_address` became
`fromAddress`, `block_number` became `blockNumber`, `cairo_1_classes` became `cairo1Classes`.

| Endpoint | Examples of affected fields |
| - | - |
| `/messages` | `from_address`, `to_address`, `block_number`, `block_hash`, `tx_hash`, `verified_block_number` |
| `/message/{msgHash}` | `from_address`, `to_address` (in `l1l2`, `l2l1`, `metadata`), `metadata.l1_transaction_hash` |
| `/message/{msgHash}/bridge-transactions` | `l1_address`, `l2_address`, `l2_token_bridge_address`, `l1_transaction_hash`, `l2_transaction_hash` |
| `/token-transfers` | `block_number`, `transaction_hash`, `token_address`, `from_address`, `to_address`, `transfer_amounts` |
| `/tx-activity` | `block_number`, `sender_address`, `execution_status`, `actual_fee`, and `calls[].contract_address` |
| `/txns/{txnHash}` | `transactionFailureReason.error_message` |
| `/daily-stats` | Every metric field, for example `transactions_count`, `fee_per_block_usd`, `l1_value_eth` |
| `/daily-stats/today` | Every field in `networkStats`, `transactionStats`, `userOperationsStats` |

Two renames do not follow the plain rule:

| Endpoint | Before | After |
| - | - | - |
| `/daily-stats` | `commulative_value`, `argentx_commulative_value`, ... | `cumulativeValue`, `argentxCumulativeValue`, ... (spelling corrected) |
| `/tokens/{address}/holders/overview` | `top_1_5`, `top_6_10`, `top_11_25`, `top_26_50`, `top_51_100`, `outside_100` | `top1To5`, `top6To10`, `top11To25`, `top26To50`, `top51To100`, `outside100` |

## 5. Error Responses

Unexpected server errors return a structured JSON body instead of a plain error page.
The trace identifier is `traceId`:

```json theme={null}
{
  "success": false,
  "error": {
    "code": "V099",
    "category": "INTERNAL_ERROR",
    "message": "An unexpected error occurred",
    "traceId": "9f1c2b7e-...",
    "suggestions": ["..."]
  }
}
```

Include the `traceId` when you contact support about a failed request.

This also applies to contract verification: an unexpected server failure during
`POST /class-verify/{hash}` now returns `500` with the body above. Before the release it returned
`400` with the internal error message.

## What Did Not Change

* **`metrics` values on `/daily-stats`** stay snake\_case. Keep sending
  `?metrics=transactions_count`; only the response fields are camelCase.
* **`executionResources` on `/txns/{txnHash}`** keeps its inner `l1_gas`, `l1_data_gas`, and
  `l2_gas` keys, which mirror the Starknet RPC format.
* **Enum values** such as `orderBy=asc` or `tokenType=ERC20` are unchanged.
* **Contract verification (`/class-verify/*`) is unchanged.** `POST /class-verify/{hash}`,
  `GET /class-verify/job/{job}`, and `GET /class-verify/check/{hash}` keep their snake\_case
  request and response fields (`job_id`, `class_hash`, `build_tool`, `trace_id`, ...), so
  released voyager-verifier and snforge versions keep working without an upgrade.
* Fields that are already camelCase are unchanged.

## Migrating

1. Rename the query parameters in the tables above.
2. Update response parsing for the fields your integration reads.
3. Point bridge transaction lookups at `/message/{msgHash}/bridge-transactions`.
4. Confirm that paged requests return the page size you ask for, since an old parameter name
   fails silently.

Questions or migration issues: [contact us](https://docs.voyager.online/guides/contact.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.