SupraOracles is a novel, high-throughput Oracle & IntraLayer: A vertically integrated toolkit of cross-chain solutions (data oracles, asset bridges, automation network, and more) that interlink all blockchains, public (L1s and L2s) or private (enterprises).
Now you can simply access the S-Value Crypto Price of our supported market pairs. In this step, we'll get the price of ETH/USDT (eth_usdt) by applying the following code to our Smart Contract.
const ethers = require('ethers');// Connect to the providerlet provider = new ethers.providers.JsonRpcProvider('https://dapps.shardeum.org');// Contract ABIlet abi =[INSERT ABI]// Contract addresslet contractAddress = '0xc85F07Dc3BEcBEAccB53CC82D32423f4EAD59311';// Instantiate the contractlet contract = new ethers.Contract(contractAddress, abi, provider);// Call getPrice methodasync function getPrice(priceIndex) { let result = await contract.getPrice(priceIndex); console.log(result);}getPrice(1); // Replace 1 with your desired priceIndex// Call getPriceForMultiplePair methodasync function getPriceForMultiplePairs(pairIndexes) { let result = await contract.getPriceForMultiplePair(pairIndexes); console.log(result);}getPriceForMultiplePairs([1, 2, 3]); // Replace [1, 2, 3] with your desired pairIndexes
The Supra Network Activate Program (SNAP) offers companies discounted oracle credits, technical documentation, and customer support to embed much-needed oracles and VRF/RNG. SNAP supports Web3 scaling and growth to buffer costs which could typically inhibit a company’s success.
The SNAP program is partnered with some of Web3's most prolific names who are helping with project selection and qualification.