Feed Creation
Anyone can create a data feed on Molpha by connecting an API endpoint to the protocol. This guide walks you through the process.Prerequisites
Before creating a feed, you’ll need:- API Endpoint — A publicly accessible API or protected API with credentials
- JSONPath Selector — Knowledge of how to extract the value from the API response
- Solana Wallet — With USDC for creation fees
- Feed Configuration — Decide on update frequency and subscription duration
Creating a Feed
Step 1: Prepare Your API
Your API should return data in a consistent format. For example:Step 2: Define Your Feed Specification
A feed specification includes:| Field | Description | Example |
|---|---|---|
source | API endpoint URL | https://api.example.com/v1/price |
selector | JSONPath to extract value | $.bitcoin.usd |
frequency | Update interval (seconds) | 60 |
signatures required | Min number of node signatures needed to update the feed | 3 |
Step 3: Submit via Dashboard
- Visit the Molpha Dashboard
- Click “Create Feed”
- Fill in your feed specification
- Choose subscription duration (30-365 days)
- Pay creation fee in USDC
Step 4: Verification
After submission:- Verifier nodes start fetching from your API
- Nodes validate and sign results
- Once quorum is reached, feed becomes active
- Updates are published according to your specified frequency
Feed Types
Public API Feeds
Feeds created for public use, sponsored feeds- Immutable -> once created configuration cannot be changed
- Explorable though feed limits
- Anyone can consume data onchain
- There can be a consumer price set by the feed creator or they
Personal API Feeds
Feeds created for personal use only- Owner can update the configuration anytime
- not explorable
- owner can set the consumers
Feed Management
Updating Feed Configuration
You can update (Personal feeds only):- Update frequency
- Signatures threshold
- Subscription extension
Feed Lifecycle
- Draft — Created but not yet active
- Active — Receiving updates from verifiers
- Archived — Subscription expired, no longer updating