Reference
API Reference
The complete generated API contract: gRPC services, REST endpoints, message schemas, query schemas, and the upstream Cosmos SDK pin.
gRPC Services
CenterChain modules expose the following gRPC services (generated from protobuf):
Token Factory
Query/Denom,Query/DenomsQuery/DenomMetadata,Query/DenomsMetadataQuery/DenomAuthorityMetadataQuery/Blacklist,Query/BlacklistsQuery/DenomRestrictionQuery/SwapAuthorization,Query/SwapAuthorizationsQuery/Params
Liquidity
Query/Pool,Query/PoolsQuery/PoolLiquidityQuery/PoolFeeQuery/Farm,Query/FarmsQuery/FarmPosition,Query/FarmPositionsQuery/FeeRecord,Query/FeeRecordsQuery/Params
NFT
Query/Class,Query/ClassesQuery/NFT,Query/NFTsQuery/ClassOwner,Query/NFTsByOwnerQuery/Params
NFT Market
Query/Listing,Query/ListingsQuery/ListingsBySeller,Query/ListingsByClassQuery/ClassRoyalty,Query/ClassMarketConfigQuery/MarketConfig,Query/Params
Income
Query/Stream,Query/StreamsQuery/HolderAccrual,Query/HolderAccrualsQuery/NFTclaimable,Query/NFTclaimablesQuery/YieldPoolQuery/Params
REST Endpoints
All gRPC query services are exposed as REST endpoints via the Cosmos REST gateway. Base path: /cosmos/.../v1/ for standard modules, /centerchain/.../v1/ for custom modules.
Example endpoints:
Token Factory
GET /centerchain/tokenfactory/v1/denomsGET /centerchain/tokenfactory/v1/denoms/{denom}GET /centerchain/tokenfactory/v1/denoms/{denom}/authorityGET /centerchain/tokenfactory/v1/denoms/{denom}/blacklist
Liquidity
GET /centerchain/liquidity/v1/poolsGET /centerchain/liquidity/v1/pools/{pool_id}GET /centerchain/liquidity/v1/pools/{pool_id}/liquidityGET /centerchain/liquidity/v1/farms
NFT Market
GET /centerchain/nftmarket/v1/listingsGET /centerchain/nftmarket/v1/listings/{listing_id}GET /centerchain/nftmarket/v1/classes/{class_id}/royalty
Income
GET /centerchain/income/v1/streamsGET /centerchain/income/v1/streams/{stream_id}/accrualsGET /centerchain/income/v1/nft-claimablesGET /centerchain/income/v1/yield-pools/{pool_id}
Upstream Pin
CenterChain pins specific upstream versions to ensure reproducibility and auditability:
See Upstream Pin for the complete dependency graph and rationale.
REST Coverage Map
Percentage of gRPC query methods exposed via REST:
Token Factory
100% (all queries)
Liquidity
100% (all queries)
NFT
100% (all queries)
NFT Market
100% (all queries)
Income
100% (all queries)
Standard Cosmos modules
Per upstream (bank, staking, gov, etc.)
See REST Coverage for the complete method-by-method table.
Message Schemas
All messages are defined in protobuf and exposed as JSON for REST. Each message type includes:
- Field definitions with types and descriptions
- Validation rules (caps, formats, required fields)
- Example JSON payloads
- Error codes and conditions
See API Reference for the complete message catalog with interactive examples.