Created
March 26, 2019 22:21
-
-
Save TrevorJTClarke/93ba6b418913a59ccb3e76806db0341a to your computer and use it in GitHub Desktop.
This file contains hidden or 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/transactions', | |
headers: { 'x-api-key': 'YOUR_API_KEY_HERE' } | |
}).then(res => { | |
// res data example: | |
{ | |
"totalRecords": 3300291, | |
"records": [ | |
{ | |
"hash": "0x81ccfbab5d3bdacee89ae19c7691005bc02bf7ba0a20aec20f8bc8ca5c441872", | |
"nonce": "11654", | |
"blockHash": "0xcbe6308c0511868d60f362b5a9b89eb4e5155892b1bc3a442ab5f7382ccc6238", | |
"blockNumber": "7280582", | |
"transactionIndex": "91", | |
"from": "0x2642b53770a0331014a186c79e0b1a1d40015b32", | |
"to": [ | |
"0x06012c8cf97bead5deae237070f9587f8e7a266d" | |
], | |
"value": "0", | |
"inputSize": 138, | |
"gasPrice": "3000000000", | |
"gas": "81568", | |
"cumulativeGasUsed": "6107190", | |
"gasUsed": "54379", | |
"status": "0x1", | |
"numLogs": "1", | |
"timestamp": 1551393689000, | |
"timestampNanoseconds": 0 | |
} | |
] | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment