Created
April 23, 2019 21:59
-
-
Save taylorjdawson/60b1255e684e712bbe88fdcb14a92b3f to your computer and use it in GitHub Desktop.
Amberdata API Example - Transactions, Logs, Functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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