2020 US Presidential Election - EOS
If you want to connect to the full AP Election results in any language over HTTP, learn how here.
Walkthrough
// in JavaScript
const allWinners = await fetch('https://eos.hyperion.eosrio.io/v2/history/get_actions?limit=1&account=associapress&filter=associapress%3Aelection&sort=desc')
.then((res) => res.json())
.then((res) => {
return res?.actions?.[0]?.act?.data?.data;
})
.then((res) => JSON.parse(res));
Last updated
Was this helpful?