Created
April 23, 2019 21:27
-
-
Save taylorjdawson/862da97f0f8c07e224664488bbe4e27c to your computer and use it in GitHub Desktop.
Amberdata API Example - Address Logs
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
axios({ | |
method:'get', | |
url: 'https://web3api.io/api/v1/addresses/ETHEREUM_ADDRESS_HERE/logs', | |
headers: { 'x-api-key': 'YOUR_API_KEY_HERE' } | |
}).then(res => { | |
// response data example: | |
{ | |
"totalRecords": 6448870, | |
"records": [ | |
{ | |
"removed": false, | |
"logIndex": "230", | |
"transactionIndex": "62", | |
"transactionHash": "0x3c0abea77f9324b565696e51a6e7109a10fe320e985963b869105ce6e8db20f7", | |
"blockHash": "0xa3f99da4a3871dbc8778a1fcb3a715ddbee89bfe3762eb6d1b624d4312e37757", | |
"blockNumber": "7280571", | |
"address": "0x06012c8cf97bead5deae237070f9587f8e7a266d", | |
"data": [ | |
"00000000000000000000000012b353d1a2842d2272ab5a18c6814d69f4296873", | |
"0000000000000000000000000000000000000000000000000000000000159353", | |
"000000000000000000000000000000000000000000000000000000000015ab30", | |
"00000000000000000000000000000000000000000000000000000000006f18ab" | |
], | |
"dataSize": 258, | |
"timestamp": 1551393570000, | |
"timestampNanoseconds": 0, | |
"topics": [ | |
"0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80" | |
], | |
"blockchainId": "1c9c969065fcd1cf" | |
}, | |
... | |
] | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment