Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.87 KB

integrating-band-oracle-smart-contract.md

File metadata and controls

29 lines (19 loc) · 1.87 KB
description
How to query the Band Protocol reference data smart contract from another Solidity smart contract on Emerald.

Integrating BAND oracle smart contract

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

  1. Folow this link to Remix. The link contains an encoded example DemoOracle.sol contract.
  2. Compile the contract with compiler version 0.6.11.
  3. Switch to the Deploy tab of Remix.
    1. Select "Injected Web3" in the Environment dropdown in the top left to connect Metamask.
    2. Make sure that Metamask is connected to the Alfajores test network. You can read about adding Alfajores to Metamask here.

environment

  1. Enter the Alfajores testnet Band reference data aggregator contract address (0x71046b955Cdd96bC54aCa5E66fd69cfb5780f3BB) to the DemoOracle constructor and deploy the contract. You can access the reference data aggregator contract on mainnet at 0xDA7a001b254CD22e46d3eAB04d937489c93174C3.

environment

An interface to interact with the contract will appear in the bottom left corner of Remix.

\