Pyth Hermes
Hermes is a web service that listens to the Pythnet and the Wormhole Network for Pyth price updates and serves them via a convenient web API. It provides Pyth's latest price update data format that is more cost-effective to verify and use on-chain.
To access the Hermes API you will need a Pythnet endpoint from us.
Hermes allows users to easily query for recent price updates via a REST API or subscribe to a web socket for streaming updates. The Pyth Network's Javascript SDKs connect to a Hermes instance to fetch price updates.
To use the Hermes REST endpoint from a frontend, use the following path:
To use your Hermes endpoint from a backend, insert your RPC token in the right place; before /hermes. Use the following path:
To use websockets add /hermes/ws
to your endpoints whether for frontend or backend.
Please note that your other Pythnet RPC services with us will be at https://<unique-subdomain>.mainnet.pythnet.rpcpool.com/<secret-token>
without the /hermes extension.
See Hermes documentation here: https://docs.pyth.network/documentation/pythnet-price-feeds/hermes
Last updated