Skip to content

Instantly share code, notes, and snippets.

@taylorjdawson
Created April 23, 2019 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taylorjdawson/60b1255e684e712bbe88fdcb14a92b3f to your computer and use it in GitHub Desktop.
Save taylorjdawson/60b1255e684e712bbe88fdcb14a92b3f to your computer and use it in GitHub Desktop.
Amberdata API Example - Transactions, Logs, Functions
let config = {headers: {"x-api-key": "YOUR_API_KEY_HERE"}}
let getAddressTransactions = axios.get('https://web3api.io/api/v1/addresses/ETHEREUM_ADDRESS_HERE/transactions', config)
let getAddressLogs = axios.get('https://web3api.io/api/v1/addresses/ETHEREUM_ADDRESS_HERE/logs', config)
let getAddressFunctions = axios.get('https://web3api.io/api/v1/addresses/ETHEREUM_ADDRESS_HERE/functions', config)
let responses = await Promise.all([getAddressTransactions(), getAddressLogs(), getAddressFunctions()]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment