Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.46 KB

cosmwasm.md

File metadata and controls

28 lines (19 loc) · 1.46 KB
description
Consume Pyth Network prices in applications on Cosmwasm

Pyth on Cosmwasm

Cosmwasm contracts can update and fetch the Pyth prices using the Pyth Cosmwasm Contract, deployed on their network. The documented source code can be found here.

Updating Price Feeds

The mechanism by which price feeds are updated on Cosmwasm is explained here. The pyth-common-js can be used to fetch the latest price feed data which then can be passed to the ExecuteMsg, on-chain function.

Examples

Networks

Pyth is currently available on the following cosmwasm chains:

Testnet

Network Contract address
Injective inj1z60tg0tekdzcasenhuuwq3htjcd5slmgf7gpez

Price Feeds

Network Available Price Feeds
Cosmwasm Testnet https://pyth.network/developers/price-feed-ids#cosmwasm-testnet