Skip to main content

index/variables/QUERY_FIELD_NAMES.md

const QUERY_FIELD_NAMES: object

Standard query field names used in backend API requests

These strings are used when building query parameters for API calls. Centralizing them prevents typos and ensures consistency.

Type Declaration​

NameTypeDescription
END_DATE"endDate"Filter: end date for time-range queries
LIMIT"limit"Pagination: results per page
PAGE"page"Pagination: page number (usually 1-indexed)
POOL_TYPE"type"Filter: pool type (recent, popular)
SEARCH"search"Filter: fuzzy search term
SORT_ORDER"sortOrder"Sort: order direction (ASC, DESC)
START_DATE"startDate"Filter: start date for time-range queries
TOKEN_NAME"tokenName"Filter: token name for lookups and searches
TRADE_TYPE"tradeType"Filter: trade type (BUY or SELL)
USER_ADDRESS"userAddress"Filter: user wallet address for balance/trade queries
VAULT_ADDRESS"vaultAddress"Filter: vault address for token resolution

Example​

import { QUERY_FIELD_NAMES } from '@gala-chain/launchpad-sdk';

const queryParams = {
[QUERY_FIELD_NAMES.PAGE]: 1,
[QUERY_FIELD_NAMES.LIMIT]: 20,
[QUERY_FIELD_NAMES.TOKEN_NAME]: 'anime'
};