Integrates Pyth pull price feeds on Hedera (testnet 296 / mainnet 295). Covers Hermes update payloads, payable updatePriceFeeds, getPriceNoOlderThan, confidence checks, and signed expo normalization.
Ships in oracles. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Pull pattern: Pyth is not a fire-and-forget push feed. Fresh reads usually need a Hermes payload submitted on-chain (payable) before getPriceNoOlderThan.
Hermes → updatePriceFeeds{value: fee}(updateData) → getPriceNoOlderThan(priceId, maxAge)
Consumers may wrap Pyth behind a local interface; that is optional. Do not assume a project-specific adapter name.
| Piece | Role |
|---|---|
| Pyth contract | Network IPyth address |
| Price ID | bytes32 feed id (not an aggregator address) |
| Update | Payable updatePriceFeeds with Hermes updateData |
| Fee | getUpdateFee(updateData) — msg.value must cover it |
| Read | getPriceNoOlderThan(priceId, maxAge) |
| Confidence | Reject when conf > uint64(price) |
| Scale | Signed price + expo → consumer decimals (often 18) |
Hedera chain IDs: testnet 296, mainnet 295.
See references/hedera-feeds.md for where to source the Pyth contract and price IDs. See references/examples.md for update / read / expo sketches.
If the on-chain price is older than your staleness bound, fetch Hermes update data and submit it:
function updatePrice(bytes[] calldata updateData) external payable {
uint256 fee = PYTH.getUpdateFee(updateData);
if (msg.value < fee) revert UpdateFeeTooLow(msg.value, fee);
PYTH.updatePriceFeeds{ value: msg.value }(updateData);
}
Hedera msg.value is tinybars via JSON-RPC — attach enough native value for the Pyth fee. Do not treat a stale getPriceUnsafe as a valid trading price.
After getPriceNoOlderThan:
| Check | Why |
|---|---|
publishTime != 0 | Incomplete |
price > 0 | Invalid / non-positive |
conf > uint64(price) | Confidence wider than the price |
Normalize expo | expo is signed; not the same as ERC-20 decimals |
PythStructs.Price memory price = PYTH.getPriceNoOlderThan(priceId, maxStaleness);
if (price.publishTime == 0) revert IncompleteRound();
if (price.price <= 0) revert InvalidPrice();
if (price.conf > uint64(price.price)) revert InvalidConfidence();
When implementing or reviewing Pyth on Hedera:
msg.value before relying on a fresh pricegetPriceNoOlderThan (or equivalent max-age API), not unbounded unsafe prices for tradingexpo normalized to the consumer scale295 or 296 (or the project’s documented Hedera network)What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/chainlink-data-feedsChainlink Data Feeds on Hedera. Use when reading AggregatorV3 price feeds on Hedera (testnet 296 / mainnet 295), calling latestRoundData, checking round completeness and staleness, or normalizing feed decimals. Not for Chainlink CCIP (cross-chain tokens).
/supra-push-oracleSupra S-Value push oracle on Hedera. Use when reading getSvalue price feeds on Hedera (testnet 296 / mainnet 295), mapping pair IDs, converting millisecond timestamps to unix seconds, or quoting USDT pairs where USD is unavailable.
/oracles:pyth-price-feedsfrom oracles
npx claudepluginhub hedera-dev/hedera-skills --plugin oraclesOther plugins' skills for the same job