[Velocity BPA Licensing Notice]
This n8n node is licensed under the Business Source License 1.1 (BSL 1.1).
Use of this node by for-profit organizations in production environments requires a commercial license from Velocity BPA.
For licensing information, visit https://velobpa.com/licensing or contact licensing@velobpa.com.
A comprehensive n8n community node for Pyth Network oracle protocol. This marketplace-ready toolkit enables seamless integration with Pyth's decentralized price oracle, including real-time price feeds, on-chain updates, historical data, and DeFi integrations across 20+ blockchain networks.
- 11 Resource Categories with 60+ operations
- Real-Time Price Feeds - Access live crypto, forex, commodity, and equity prices
- On-Chain Updates - Push price updates to EVM-compatible smart contracts
- Historical Data - Query OHLC data and TWAP via Benchmarks API
- Confidence Analysis - Work with price uncertainty for DeFi risk management
- Multi-Chain Support - 20+ blockchain networks supported
- Streaming Updates - Real-time subscriptions via SSE/WebSocket
- Full TypeScript Support - Type-safe implementations
- Open your n8n instance
- Go to Settings → Community Nodes
- Click Install a community node
- Enter
n8n-nodes-pyth - Click Install
# Navigate to your n8n custom nodes directory
cd ~/.n8n/custom
# Install the package
npm install n8n-nodes-pyth# Clone the repository
git clone https://github.com/Velocity-BPA/n8n-nodes-pyth.git
cd n8n-nodes-pyth
# Install dependencies
npm install
# Build the project
npm run build
# Link to n8n (for development)
npm link
cd ~/.n8n/custom
npm link n8n-nodes-pyth| Field | Description |
|---|---|
| Environment | Select mainnet or testnet |
| Hermes API Endpoint | Price service URL (default: https://hermes.pyth.network) |
| Benchmarks API Endpoint | Historical data URL (default: https://benchmarks.pyth.network) |
| API Key | Optional API key for higher rate limits |
| Field | Description |
|---|---|
| Network | Select mainnet or testnet |
| Chain | Select blockchain (Ethereum, Arbitrum, Base, etc.) |
| RPC Endpoint | Your RPC provider URL |
| Private Key | Your wallet private key (for write operations) |
| Field | Description |
|---|---|
| Publisher Key | Publisher authentication key |
| Publisher Endpoint | Publisher service endpoint |
| Pythnet RPC | Pythnet Solana RPC endpoint |
- Get Price
- Get Price with Confidence
- Get Price No Older Than
- Get EMA Price
- Get Feed ID
- Get All Feed IDs
- Search Feeds
- Validate Feed ID
- Get Staleness
- Get Multiple Prices
- Get Latest Update
- Get Price with Publish Time
- Get Multiple Prices
- Get Confidence Interval
- Calculate Deviation
- Get Update Fee
- Get Update Data
- Update Price Feed
- Estimate Gas
- Get Contract Address
- Get Valid Time Period
- Get Latest Price Updates
- Get Price Feed IDs
- Get Latest VAA
- Get Streaming URL
- Health Check
- Get Historical Price
- Get Price at Time
- Get TWAP
- Search Symbols
- Get Symbol Info
- Get All Assets
- Get by Symbol
- Get by Type
- Search Assets
- Get Confidence
- Get Confidence Level
- Check Acceptable
- Get Safe Price
- Get EMA Price
- Compare to EMA
- Get EMA Deviation
- Get Contract Address
- Check Feed Exists
- Get On-Chain Price
- Get Entropy Fee
- Get Entropy Contract
- Convert Expo
- Format Price
- Validate Feed ID
- Get Feed ID from Symbol
- Get Symbol from Feed ID
- Get Timestamp
Monitor price events in real-time:
| Trigger | Description |
|---|---|
| Price Updated | Fires on any price update |
| Price Above Threshold | Fires when price exceeds value |
| Price Below Threshold | Fires when price falls below value |
| Price Change Percent | Fires on percentage price moves |
| Confidence Changed | Fires when confidence interval changes significantly |
| Price Stale | Fires when price data becomes stale |
// In n8n workflow:
// 1. Add Pyth Network node
// 2. Select "Price Feed" resource
// 3. Select "Get Price" operation
// 4. Enter "ETH/USD" as Feed ID// 1. Add Pyth Network node
// 2. Select "Price Feed" resource
// 3. Select "Get Multiple Prices" operation
// 4. Enter "ETH/USD, BTC/USD, SOL/USD" as Feed IDs// 1. Add Pyth Network node
// 2. Select "Benchmarks" resource
// 3. Select "Get Historical Price" operation
// 4. Configure symbol, time range, and resolution// 1. Add Pyth Trigger node
// 2. Select "Price Above Threshold" trigger
// 3. Enter feed ID (e.g., "BTC/USD")
// 4. Set threshold price// 1. Add Pyth Network node
// 2. Select "On-Chain Update" resource
// 3. Select "Get Update Data" operation
// 4. Provide feed IDs and chain configurationEach asset has a unique 32-byte hex identifier (e.g., 0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace for ETH/USD). The node accepts both symbols (ETH/USD) and raw feed IDs.
Pyth prices use integer representation with an exponent:
price: Integer valueexpo: Exponent (typically negative, e.g., -8)- Actual price =
price * 10^expo
Every price includes a confidence interval representing uncertainty:
- Excellent: < 0.1% of price
- Good: < 0.5% of price
- Acceptable: < 1% of price
- Caution: > 1% of price
Unlike push oracles, Pyth uses a pull model where users fetch price updates from Hermes and submit them on-chain when needed.
Wormhole-signed messages that attest to price data for cross-chain updates, enabling trustless price verification.
BTC/USD, ETH/USD, SOL/USD, BNB/USD, XRP/USD, ADA/USD, DOGE/USD, AVAX/USD, DOT/USD, LINK/USD, UNI/USD, ATOM/USD, ARB/USD, OP/USD, SUI/USD, APT/USD, and more...
USDC/USD, USDT/USD, DAI/USD
EUR/USD, GBP/USD, JPY/USD, CHF/USD
XAU/USD (Gold), XAG/USD (Silver)
| Network | Chain ID | Type |
|---|---|---|
| Ethereum | 1 | EVM |
| Arbitrum | 42161 | EVM |
| Optimism | 10 | EVM |
| Base | 8453 | EVM |
| Polygon | 137 | EVM |
| BNB Chain | 56 | EVM |
| Avalanche | 43114 | EVM |
| Fantom | 250 | EVM |
| Solana | - | Non-EVM |
| Sui | - | Non-EVM |
| Aptos | - | Non-EVM |
| Sei | - | Non-EVM |
The node includes comprehensive error handling:
- Invalid feed ID validation
- Stale price detection
- Network connectivity issues
- Rate limit handling
- On-chain transaction failures
- Never expose private keys - Use n8n credentials securely
- Check confidence intervals - Don't use prices with high uncertainty
- Test on testnet first - Use testnet before mainnet operations
- Monitor price staleness - Verify prices are fresh before use
- Validate feed IDs - Ensure correct feed IDs for your assets
# Install dependencies
npm install
# Build TypeScript
npm run build
# Lint code
npm run lint
# Run tests
npm test
# Watch mode for development
npm run devVelocity BPA
- Website: velobpa.com
- GitHub: Velocity-BPA
This n8n community node is licensed under the Business Source License 1.1.
Permitted for personal, educational, research, and internal business use.
Use of this node within any SaaS, PaaS, hosted platform, managed service, or paid automation offering requires a commercial license.
For licensing inquiries: licensing@velobpa.com
See LICENSE, COMMERCIAL_LICENSE.md, and LICENSING_FAQ.md for details.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Open an issue for bug reports
- Start a discussion for feature requests
- n8n - Workflow automation platform
- Pyth Network - Decentralized price oracle
- Wormhole - Cross-chain messaging protocol