use on any chain
RedStone delivers frequently updated, reliable and
diverse data for your dApp and smart contracts.
New protocols require more data delivered at lower latency.
Stop waiting minutes for updates. RedStone delivers data in seconds
EVM-connector reduces gas costs thanks to meta transactions and call-data utilisation
Allow your smart contracts to fetch any non-standard data, like volatility, order books or trading volumes.
Anyone can become a data provider and configure a data stream with just a few clicks.
Downtime or incorrect data are covered by the provider's stake.
Thanks to our unique approach that avoids putting data into on-chain storage we are available on any chain out of the box.
We use a radically different way of putting data on EVM chains called EVM-connector. The data is automatically attached to a transaction and erased afterwards thus reducing gas fees without touching the expensive evm storage.
In order to access data in smart contract you need to extend it with the PriceAware contract and override the implementation of isSignerAuthorized function.
import "@redstone-finance/evm-connector/contracts/data-services/AvalancheDataServiceConsumerBase.sol"; contract YourContractName is AvalancheDataServiceConsumerBase { // Getting a single value uint256 ethPrice = getOracleNumericValueFromTxMsg(bytes32("ETH")); // Getting several values bytes32[] memory dataFeedIds = new bytes32[](2); dataFeedIds[0] = bytes32("ETH"); dataFeedIds[1] = bytes32("BTC"); uint256[] memory values = getOracleNumericValuesFromTxMsg(dataFeedIds); uint256 ethPrice = values[0]; uint256 btcPrice = values[1]; }
Seamlessly connect your front-end using a contract wrapper and use last price in your dApp.
import { WrapperBuilder } from "@redstone-finance/evm-connector"; const contract = new ethers.Contract(address, abi, provider); const wrappedContract = WrapperBuilder.wrap(contract).usingDataService( { dataServiceId: "redstone-avalanche-prod", uniqueSignersCount: 10, dataFeeds: ["AVAX", "ETH", "PNG"], }, ["https://d33trozg86ya9x.cloudfront.net"] );
Want to dive deeper? Check the Docs!
Subscribe to always know first about the latest updates, milestones, and exclusive content!
Our team won dozens of hackathon prizes. But many of our projects never made it into production because we couldn't find oracles that were fast, cheap or reliable enough. Now, we take care of that and you can simply use RedStone.
Welcome to the next generation of oracles!
Check our FAQ, see our
team page and engage in a discussion on
our
Discord
&
Twitter.
You can also reach out to us by sending an email to
core@redstone.finance