Solidity
Learn how to set up solidity integration with Fetch Oracle.
Connecting to the Oracle
Installation
npm install usingfetchImporting
pragma solidity ^0.8.3;
import "usingfetch/contracts/UsingFetch.sol";
contract MyContract is UsingFetch {
constructor(address payable _fetchAddress) UsingFetch(_fetchAddress) {
}
// ...
}Reading data
Last updated