Coder Social home page Coder Social logo

colonelj / tron-transfers-downloader Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 4.0 95 KB

Node.js script to download all TRX and TRC10 transfers to/from an account to a CSV file, using TronGrid APIs

License: The Unlicense

JavaScript 100.00%
tron tronix trc-20 trc-10 trongrid tronscan nodejs csv

tron-transfers-downloader's People

Contributors

colonelj avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tron-transfers-downloader's Issues

Download not working

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!

Some TRC20 transfers are missing

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.

TypeError: Cannot read property 'open' of undefined

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

help to run

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

TronGrid: Request failed with status code 403

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.

Can I pay you to run this for me?

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?

Save to .csv file directly when downloading

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

what is this problem?

==== 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]#

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.