Description
Enumerations provide canonical reference data used across BlockDB API requests and responses. These identifiers ensure consistent data classification and enable filtering across datasets. All enumeration values are stable and versioned independently from dataset schemas.Enumeration Reference
| Enumeration | Description | Use Cases |
|---|---|---|
Chain | Supported EVM chain IDs compatible with ChainList | Filter datasets by network, specify chain_id in all requests |
Digital Exchange | DEX protocol identifiers for pools and price feeds | Filter reserves and pricing data by exchange type |
Dataset ID | Canonical dataset identifiers mapping to API endpoints | Reference datasets in lineage and catalog queries |
Pool Type | AMM pool archetype classifications | Filter pools and reserves by liquidity model |
Asset Class | Asset type identifiers (ERC-20, NFT, fiat, native) | Construct price request descriptors |
Fiat Currency | ISO 4217 fiat currency codes | Specify quote currencies in pricing endpoints |
Market Kind | Market classification (spot, derivative, etc.) | Scope pricing queries to specific market surfaces |
Parameter Conventions
- Enumeration values are case-sensitive and must match exactly as documented
- Use numeric IDs for chain, exchange, and pool type enumerations
- Use string codes for asset class, fiat currency, and market kind
- All enumeration values are immutable within a major version
Usage Guidance
- Cache enumerations client-side — values change infrequently and can be cached for extended periods
- Validate before requests — check that enumeration values exist before constructing API requests to avoid
400 Bad Requesterrors - Reference in filters — use enumeration IDs in request body filters (e.g.,
exchange_ids,pool_type_ids) rather than hardcoding values - Monitor updates — subscribe to Release Notes for new enumeration values or deprecations
See Also
- Chain — EVM network identifiers
- Digital Exchange — DEX protocol identifiers
- Dataset ID — Dataset catalog mapping
- Pool Type — AMM pool classifications
- Asset Class — Asset type system
- Fiat Currency — Currency codes
- Market Kind — Market classifications