Hi guys, would really appreciate some help
I'm looking to copy some API data into Excel which I can then arrange into columns:
Here is the API data I'm extracting: API DATA
When you open up the data you'll see the complete API call.
The very first line of the data can be completely ignored: ({"status":"1","message":"OK","result"
After that, you have a whole bunch of key|value pairs for every "block" - There are many of them!
Here's the first block:
{"blockNumber":"4041874","timeStamp":"1500430428","hash":"0x8bcfce9af53f1c318aff183cd14a491aae68b0dd14172a3f40f83ee9cc452e68","nonce":"123","blockHash":"0x5467eba473d443d81e7841f8557e953079f9428cff72c4def556f9303907eaf9","from":"0x77744a927271f12dc5b9b8887064f07c37648829","contractAddress":"0xc63e7b1dece63a77ed7e4aeef5efb3b05c81438d","to":"0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae","value":"696900","tokenName":"****token","tokenSymbol":"****","tokenDecimal":"4","transactionIndex":"84","gas":"51810","gasPrice":"4000000000","gasUsed":"51809","cumulativeGasUsed":"3548636","input":"deprecated","confirmations":"10726582"},
Here's the second block:
{"blockNumber":"4207393","timeStamp":"1503789024","hash":"0xa7bd87396908d54e5c6dbc1738c8a3f15ca59806cfc360a7657e0a97c7d6222c","nonce":"19","blockHash":"0x776fb5b420903d821563d946bfd303abb2d56788eab6adec83fe7ea8130b6a9a","from":"0x745708a805f36e9d4815e10b856719e152c7a000","contractAddress":"0xdab0c31bf34c897fb0fe90d12ec9401caf5c36ec","to":"0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae","value":"1","tokenName":"DABcoin","tokenSymbol":"DAB","tokenDecimal":"0","transactionIndex":"99","gas":"51575","gasPrice":"1000000000","gasUsed":"51574","cumulativeGasUsed":"5127026","input":"deprecated","confirmations":"10561063"},
There can often be more than 100+ "blocks"
The "keys" in each block would remain constant. They are always the following:
blockNumber, timeStamp, hash, nonce, blockHash, from, contractAddress, to, value, tokenName, tokenSymbol, tokenDecimal, transactionIndex, gas, gasPrice, gasUsed, cumulativeGasUsed, input, confirmations
These 19 "keys" would basically act as column headers in the spreadsheet
I then want to be able to populate the rows with the "value" results for each block. So basically I would end up with 19 columns, and potentially hundreds of rows.
Once I'm at that point I can sort the data as normal and hide some of the columns that I'm not interested in.
If anyone could help I'd really appreciate it!
thanks guys
I'm looking to copy some API data into Excel which I can then arrange into columns:
Here is the API data I'm extracting: API DATA
When you open up the data you'll see the complete API call.
The very first line of the data can be completely ignored: ({"status":"1","message":"OK","result"
After that, you have a whole bunch of key|value pairs for every "block" - There are many of them!
Here's the first block:
{"blockNumber":"4041874","timeStamp":"1500430428","hash":"0x8bcfce9af53f1c318aff183cd14a491aae68b0dd14172a3f40f83ee9cc452e68","nonce":"123","blockHash":"0x5467eba473d443d81e7841f8557e953079f9428cff72c4def556f9303907eaf9","from":"0x77744a927271f12dc5b9b8887064f07c37648829","contractAddress":"0xc63e7b1dece63a77ed7e4aeef5efb3b05c81438d","to":"0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae","value":"696900","tokenName":"****token","tokenSymbol":"****","tokenDecimal":"4","transactionIndex":"84","gas":"51810","gasPrice":"4000000000","gasUsed":"51809","cumulativeGasUsed":"3548636","input":"deprecated","confirmations":"10726582"},
Here's the second block:
{"blockNumber":"4207393","timeStamp":"1503789024","hash":"0xa7bd87396908d54e5c6dbc1738c8a3f15ca59806cfc360a7657e0a97c7d6222c","nonce":"19","blockHash":"0x776fb5b420903d821563d946bfd303abb2d56788eab6adec83fe7ea8130b6a9a","from":"0x745708a805f36e9d4815e10b856719e152c7a000","contractAddress":"0xdab0c31bf34c897fb0fe90d12ec9401caf5c36ec","to":"0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae","value":"1","tokenName":"DABcoin","tokenSymbol":"DAB","tokenDecimal":"0","transactionIndex":"99","gas":"51575","gasPrice":"1000000000","gasUsed":"51574","cumulativeGasUsed":"5127026","input":"deprecated","confirmations":"10561063"},
There can often be more than 100+ "blocks"
The "keys" in each block would remain constant. They are always the following:
blockNumber, timeStamp, hash, nonce, blockHash, from, contractAddress, to, value, tokenName, tokenSymbol, tokenDecimal, transactionIndex, gas, gasPrice, gasUsed, cumulativeGasUsed, input, confirmations
These 19 "keys" would basically act as column headers in the spreadsheet
I then want to be able to populate the rows with the "value" results for each block. So basically I would end up with 19 columns, and potentially hundreds of rows.
Once I'm at that point I can sort the data as normal and hide some of the columns that I'm not interested in.
If anyone could help I'd really appreciate it!
thanks guys