Ecosystem API
The Ecosystem API provides access to core protocol data including information about the Frankencoin (ZCHF) token, Frankencoin Pool Shares (FPS), minter contracts, and approved collateral types. This set of controllers offers a comprehensive view of the protocol's infrastructure.
Overview
The Ecosystem API is organized into four main controllers:
Frankencoin Controller - ZCHF token information and multichain data
FPS Controller - Frankencoin Pool Shares token and reserve data
Minter Controller - Minting hub contracts and their status
Collateral Controller - Approved collateral types and their properties
Frankencoin Controller
Access comprehensive information about the ZCHF stablecoin across all supported blockchains.
Endpoints
GET /ecosystem/frankencoin/info- Complete Frankencoin ecosystem informationGET /ecosystem/frankencoin/keyvalues- Key-value mapping of ecosystem metrics and countersGET /ecosystem/frankencoin/totalsupply- Historical time series of total supply with multichain allocation
What It Provides
/info endpoint:
/info endpoint:ERC20 Details: Token name, symbol, decimals
Multichain Data: Supply and contract addresses on each blockchain (Ethereum, Optimism, Base, Arbitrum, Polygon, Gnosis, Avalanche, etc.)
Token Metrics: Current USD price, total supply across all chains
FPS Information: FPS price, supply, and market cap
TVL: Total value locked in USD and CHF
/keyvalues endpoint:
/keyvalues endpoint:Transaction counters and analytics
Equity metrics (investments, redemptions, profits/losses)
Minter statistics
Position and challenge counters
Savings totals
Transfer reference counts
/totalsupply endpoint:
/totalsupply endpoint:Historical daily snapshots of total supply (last 1000 days)
Multichain allocation breakdown per timestamp
Supply evolution tracking
Use Cases
Monitor ZCHF distribution across blockchains
Track total protocol TVL
Display current token price and supply
Build multichain explorers
Analyze which chains have the most ZCHF activity
Track ecosystem-wide counters and metrics
Chart historical supply growth and distribution
FPS Controller
Query data about the Frankencoin Pool Shares (FPS) token, which represents ownership in the protocol's equity pool.
Endpoints
GET /ecosystem/fps/info- Complete FPS token information
What It Provides
Token Information: Name, symbol, decimals, contract address
Supply Metrics: Total supply, circulating supply
Pricing Data: Current FPS price in ZCHF
Reserve Data: Total equity, minting capacity
Multichain Deployment: FPS distribution across chains
Market Data: Market cap, price history
Use Cases
Calculate FPS token valuation
Monitor reserve equity backing
Track FPS distribution across chains
Analyze investment returns for FPS holders
Build FPS price charts and calculators
Minter Controller
Access information about minter proposals, which are requests to authorize new minting contracts in the Frankencoin ecosystem.
Endpoints
GET /ecosystem/minter/list- List all minter proposals across all chainsGET /ecosystem/minter/list/:chainId- Get minter proposals filtered by specific chain
What It Provides
Proposal Details: Minter contract address, application period, application fee
Status Information: Application date, denial status (if any)
Proposer Info: Address of the proposer, suggestor
Metadata: Transaction hash, proposal description, denial reason
Chain Info: Which blockchain the minter operates on
Use Cases
Track new minter contract proposals
Monitor minter approval status
Filter minters by specific blockchain
Verify minter contract addresses for integrations
Analyze minter proposal activity across chains
View denied proposals and reasons
Collateral Controller
Query approved collateral types and their properties, usage statistics, and position relationships.
Endpoints
GET /ecosystem/collateral/list- Array list of all collateral tokens used in positionsGET /ecosystem/collateral/mapping- Collateral information as an address-keyed mappingGET /ecosystem/collateral/positions- Mapping of collateral addresses to position addressesGET /ecosystem/collateral/positions/details- Mapping of collateral addresses to complete position detailsGET /ecosystem/collateral/stats- Comprehensive statistics for each collateral type
What It Provides
/list and /mapping endpoints:
/list and /mapping endpoints:Token Details: Address, name, symbol, decimals for each collateral type
/positions endpoint:
/positions endpoint:Collateral token information
Count of positions using each collateral
Array of position contract addresses per collateral
/positions/details endpoint:
/positions/details endpoint:Everything from
/positionsplus:Complete position objects for each collateral type
Full position details including balances, minted amounts, owners
/stats endpoint:
/stats endpoint:Position Counts: Total, open, requested, closed, denied, originals, clones
Financial Metrics: Total minted, total limits, collateral balance
Pricing: Current collateral price in USD and CHF
TVL: Total value locked per collateral and overall system TVL
Use Cases
Display available collateral options to users
Validate collateral addresses before position creation
Show collateral statistics (most popular, highest minted amounts)
Filter positions by collateral type
Build collateral comparison and analysis tools
Monitor TVL distribution across collateral types
Analyze collateral concentration risk
Track which collaterals are most actively used
Integration Examples
Building a Position Creator UI
Fetch approved collateral types:
GET /ecosystem/collateral/listGet active minters:
GET /ecosystem/minter/listDisplay collateral options with current prices from Prices API
Use minter address to interact with smart contracts
Protocol Dashboard
Fetch Frankencoin info for total supply and TVL:
GET /ecosystem/frankencoin/infoGet FPS data for equity metrics:
GET /ecosystem/fps/infoPull analytics for profit/loss:
GET /analytics/profitLossLogDisplay collateral breakdown:
GET /ecosystem/collateral/list
Multichain Explorer
Query Frankencoin info to get all chain deployments
For each chain, display supply, contract address, and activity
Show total supply sum across all chains
Highlight primary vs secondary chains by supply
Data Structure Notes
Chain IDs
Common chain IDs in the ecosystem:
1- Ethereum Mainnet10- Optimism100- Gnosis Chain137- Polygon8453- Base42161- Arbitrum43114- Avalanche
Version Numbers
V1: Original protocol contracts
V2: Current generation with enhanced risk parameters
Status Values
active: Currently operational and recommended
deprecated: Older version, still functional but not recommended for new positions
proposed: Under governance review
denied: Rejected by governance
Best Practices
Cache Strategically: Ecosystem data changes infrequently, cache for 5-10 minutes
Multichain Handling: Always check chainId to ensure you're using the correct contract
Version Awareness: Prefer V2 contracts unless specifically working with legacy positions
Status Checks: Verify active status before allowing users to interact with minters or collateral
Last updated
Was this helpful?