colonelj / tron-transfers-downloader Goto Github PK
View Code? Open in Web Editor NEWNode.js script to download all TRX and TRC10 transfers to/from an account to a CSV file, using TronGrid APIs
License: The Unlicense
Node.js script to download all TRX and TRC10 transfers to/from an account to a CSV file, using TronGrid APIs
License: The Unlicense
Hi,
I get an error. The download is not working for me. Is it possible to fix the error?
TypeError: Cannot read property 'block_timestamp' of null
at downloadAllTransactions (C:\download\index.js:58:35)
at processTicksAndRejections (node:internal/process/task_queues:94:5)
at async main (C:\download\index.js:343:17)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Thanks and best regards!
Although all TRC20 transfers should be found with the TronWeb API using the event server backend (Eventron), it seems that events from blocks of a certain age cannot be retrieved, only recent ones. This means that after a certain point, TRC20 records will be missing from the outputted CSV.
What is missing?
Writing to file output.csv...
TypeError: Cannot read property 'open' of undefined
at main (/root/test/tron-transfers-downloader/index.js:355:32)
at Object. (/root/test/tron-transfers-downloader/index.js:384:1)
at Module._compile (internal/modules/cjs/loader.js:654:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
at Module.load (internal/modules/cjs/loader.js:566:32)
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
at startup (internal/bootstrap/node.js:201:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:516:3)
error Command failed with exit code 1.
yarn --version
1.22.10
cat /etc/issue
Ubuntu 18.04.5 LTS \n \l
Hello,
do you have any video file to help me to run in centos 8 ?
when i copy codes i see just error
i think i need to install pre program to run but i should learn
Do i have to many transactions?
Looking up TRC10 ID 1002072...
Looking up TRC10 ID 1002830...
Looking up TRC10 ID 1002814...
Looking up TRC10 ID 1002377...
Looking up TRC10 ID 1002578...
Looking up TRC10 ID 1002798...
Error querying TronGrid: Request failed with status code 403
Query TronGrid retry #1
Error querying TronGrid: Request failed with status code 403
Query TronGrid retry #2
Error querying TronGrid: Request failed with status code 403
Query TronGrid retry #3
Error querying TronGrid: Request failed with status code 403
Query TronGrid retry #4
Error querying TronGrid: Request failed with status code 403
Query TronGrid retry #5
Error querying TronGrid: Request failed with status code 403
Query TronGrid retry #6
Error querying TronGrid: Request failed with status code 403
Query TronGrid retry #7
Error querying TronGrid: Request failed with status code 403
Query TronGrid retry #8
Error querying TronGrid: Request failed with status code 403
Query TronGrid retry #9
Error querying TronGrid: Request failed with status code 403
Query TronGrid retry #10
Error querying TronGrid: Request failed with status code 403
Error: Multiple attempts to query TronGrid failed!
at queryTronGrid (/root/tron-transfers-downloader/index.js:57:9)
at process._tickCallback (internal/process/next_tick.js:68:7)
error Command failed with exit code 1.
I need help trying to run this program to upload 2021 tax data. This program seems to be exactly what I need to reconcile my extensive Tronscan data yet I am not tech savy enough to do it myself. Is there any way I can pay you up front to run this for me?
Thanks in advance for the great program ๐๐ผ
Could you please change a small thing so that when downloading the transactions the csv file is infested with it, and not only when the download is complete?
For me, the download is already twice canceled after several hours, because the Internet connection is not good here. The problem is that nothing was saved in the csv file because the download was not completed.
Could you please change it so that it directly save the download? That would be great!
Thanks a lot
==== JS stack trace =========================================
0: ExitFrame [pc: 0x139432d]
Security context: 0x01bc639408d1
1: toString [0x1b3c353723f1] [buffer.js:~773] [pc=0x222a1720808e](this=0x393821d84869 ,0x21023f4c04b1 ,0x21023f4c04b1 ,0x21023f4c04b1 )
2: arguments adaptor frame: 1->3
3: handleStreamEnd [0x393821d83b31] [/root/Downloads/tron-transfers-downloader-master/node_modules/axios/lib/adapters/...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0xa1a640 node::Abort() [/usr/bin/node]
2: 0xa1aa4c node::OnFatalError(char const*, char const*) [/usr/bin/node]
3: 0xb9a68e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
4: 0xb9aa09 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
5: 0xd57c85 [/usr/bin/node]
6: 0xd58316 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/usr/bin/node]
7: 0xd64bd5 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/usr/bin/node]
8: 0xd65a85 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/bin/node]
9: 0xd6853c v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/bin/node]
10: 0xd363dc v8::internal::Factory::NewRawOneByteString(int, v8::internal::AllocationType) [/usr/bin/node]
11: 0xd36b9d v8::internal::Factory::NewStringFromUtf8(v8::internal::Vector const&, v8::internal::AllocationType) [/usr/bin/node]
12: 0xbb29af v8::String::NewFromUtf8(v8::Isolate*, char const*, v8::NewStringType, int) [/usr/bin/node]
13: 0xaf7bd0 node::StringBytes::Encode(v8::Isolate*, char const*, unsigned long, node::encoding, v8::Localv8::Value*) [/usr/bin/node]
14: 0x9f46d6 [/usr/bin/node]
15: 0x139432d [/usr/bin/node]
error Command failed with signal "SIGABRT".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[root@localhost tron-transfers-downloader-master]#
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.