description |
---|
How to query the Band Protocol reference data smart contract from another Solidity smart contract on Emerald. |
What is the Band Protocol?
Band Protocol is a cross-chain data oracle platform that aggregates and connects real-world data and APIs to smart contracts. You can read more about the specific details of the protocol here.
Deploy Oracle
- Folow this link to Remix. The link contains an encoded example
DemoOracle.sol
contract. - Compile the contract with compiler version
0.6.11
. - Switch to the Deploy tab of Remix.
- Select "Injected Web3" in the Environment dropdown in the top left to connect Metamask.
- Make sure that Metamask is connected to the Alfajores test network. You can read about adding Alfajores to Metamask here.
- Enter the Alfajores testnet Band reference data aggregator contract address (
0x71046b955Cdd96bC54aCa5E66fd69cfb5780f3BB
) to theDemoOracle
constructor and deploy the contract. You can access the reference data aggregator contract on mainnet at0xDA7a001b254CD22e46d3eAB04d937489c93174C3
.
An interface to interact with the contract will appear in the bottom left corner of Remix.
\