w3-io/W3 Pyth Action
Price oracle for crypto, equities, FX, metals, and more via Pyth Network
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| command | Operation to perform: get-feeds, get-prices, get-historical-prices, get-update-fee, submit-on-chain | yes | — |
| api-url | Pyth Hermes API base URL (override for testing/staging) | no | https://hermes.pyth.network |
| ids | Comma-separated price feed IDs (hex strings) | no | — |
| symbols | Comma-separated token symbols (e.g. "BTC,ETH"). Resolved to feed IDs automatically. | no | — |
| query | Search string for get-feeds (case-insensitive symbol substring match) | no | — |
| asset-type | Asset type filter for get-feeds: crypto, equity, fx, metal, rates, commodities, crypto_index | no | — |
| publish-time | Unix timestamp for get-historical-prices | no | — |
| network | EVM chain key (avalanche, ethereum, base, arbitrum, optimism, polygon) | no | — |
| update-data | JSON array of hex strings (the `binary.data` field from a get-prices step), or a single hex string | no | — |
| rpc-url | Custom RPC URL (defaults to the protocol default for `network`) | no | — |
| value | msg.value (wei) for submit-on-chain — required. Compute via get-update-fee and pass `${{ to_bigint(steps.fee.outputs.wei) }}`. | no | — |
Outputs
| name | description |
|---|---|
| result | JSON result of the operation |