If you don't have a Google Cloud project, you'll need to create an empty one in order to access the public tables linked above. BigQuery is user-pays, but the first terabyte of processing each month is free. It's a dump of Ethereum blockchain data - blocks, transactions, and transfers - to BigQuery, which permits arbitrary analytic queries, and supports exporting to a number of formats, including CSV. However, let me plug my own project, Etherquery. Blockchain explorers that provide this functionality work by tracing transaction execution in the EVM, recording details about what took place. There's no direct record of these in Ethereum, except by their side-effects (value transferred and state changes made), so there's no easy way to export them. These are often called "internal transactions", though in actual fact they're not transactions at all. Where it gets complicated, however, is for value transfers initiated by a contract. Transactions from an external account to another, or to a contract, are easy to detect, too, since there's also a 'to' field. Transactions initiated by an external account are easy to look up, as 'from' is one of the fields of the transaction - though there's no API call that returns only transactions initated by a given account you can at least scan transactions looking for ones you care about. How difficult it is to do depends on what you mean by "related to a specific account". Here is a guide on how to export Ethereum data to csv uses which outputs the data into blocks.csv, transactions.csv, erc20_transfers.csv. Just create a UIDocumentPickerViewController with the appropriate types, implement the delegate.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |