Fetch election calls with Solidity
If you want to connect to the AP Election results in Solidity and deploy an Ethereum smart contract, learn how here.
Last updated
Was this helpful?
If you want to connect to the AP Election results in Solidity and deploy an Ethereum smart contract, learn how here.
Last updated
Was this helpful?
.
Begin by starting a or using
Set pragma
and import the election results contract at the top of your smart contract
3. Paste in this example code and change the selectWinner
function to do what you need with the data!
4. Validate on kovan that you are getting what you expect from the presidentialWinners
mapping.
6. Still having issues?
If you're using the above solidity code, you can
5. Fetch state data for any of all the states you are interested (52 states = 50 + D.C. + US).
Learn more about Chainlink Oracles at
Tweet to and any engineering questions (or send a DM on Twitter to )