Skip to content

Instantly share code, notes, and snippets.

const axios = require('axios');
const ethers = require('ethers');
const API_TOKEN = process.env.ETHERNAL_API_TOKEN;
const API_ROOT = process.env.ETHERNAL_API_ROOT || 'https://api.tryethernal.com';
axios.defaults.headers.common['authorization'] = `Bearer ${API_TOKEN}`;
const fetchTransactionTransfers = async (workspace, hash) => {
const resource = `${API_ROOT}/api/transactions/${hash}/tokenTransfers`;
const { data: { items: transfers }} = await axios.get(resource, { data: { workspace }});

Keybase proof

I hereby claim:

  • I am antoinedc on github.
  • I am antoinedc (https://keybase.io/antoinedc) on keybase.
  • I have a public key ASB55JNr0K-qE87Uj9BoPg3RugAe7zGww56k9wgaSdnLLAo

To claim this, I am signing this object:

Verifying that +antoine is my Bitcoin username. You can send me #bitcoin here: https://onename.io/antoine
@antoinedc
antoinedc / gist:9918742
Last active August 29, 2015 13:57
SO April Fools
var f = setInterval(function () {
$.get('/unicoin/rock', function (rock) {
$.post('/unicoin/mine?rock=' + rock.rock, {
fkey: StackExchange.options.user.fkey
}, function (res) {
console.log(res);
});
});
}, 10000);