How-to Guide: Feed Integration
This demo utilizes Blockfrost services for interaction with the Cardano blockchain. Before proceeding, kindly create an account to obtain the project ID
and select the appropriate base URL
.
- Please review the live-c3-networks.md page and select your desired C3 network feed.
- Determine the contract’s address, and the policy ID associated with the
oracleFeed
NFT. - Clone the Datum Demo V3 repository and update the configuration file (
config.json
) with the previous acquired values. - To retrieve the C3 network feed, run:
python network-feed/main.py preprod --feed
.
For obtaining the C3 network configuration, run:
python network-feed/main.py preprod --configuration
.
Notes:
- The demo defaults to using a pre-production environment; nevertheless, the same structure is applicable to any C3 network deployed on the production (mainnet).
- The demo is set up to retrieve the oracle feed from both the V2 and V3 networks. However, it is only compatible with reading the configuration network of version V3.
Resources
- C3 Network Feed’s Datum Standard (PlutusTx) repository
- C3 Network Feed’s Datum Standard documentation: datum-standard.md
- Datum Demo V3 repository.