Razor is live on görli. Query the data easily by calling our contract as shown below.
Currently querying the oracle is free of cost.
You can add new data URLs by going to
RazorScan
pragma solidity ^0.5.7;
interface Razor {
function getResult(uint256 id) external view returns (uint256);
}
contract Example {
Razor public constant razor =
Razor(0x058EF5a3d450A2fac5d24dDc75d516A136AE3f62);
function getEthPrice() public view returns(uint256){
return (razor.getResult(1)); // insert jobId here
}
function getBtcPrice() public view returns(uint256){
return (razor.getResult(2));
}
}