Coder Social home page Coder Social logo

colonelj / tronscan-transfers-downloader Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 5.0 38 KB

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

License: The Unlicense

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

tronscan-transfers-downloader's Introduction

tronscan-transfers-downloader

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

Prerequisites

  • Node.js โ€“ version 10 or above is required
  • Yarn โ€“ recommend latest stable version

Usage

yarn
yarn start <tron-address> <output-csv-file>

tronscan-transfers-downloader's People

Contributors

colonelj avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tronscan-transfers-downloader's Issues

UnhandledPromiseRejectionWarning

Hi,

Using v1.17.3, when creating a test CSV file, the following error appears at execution.

`Writing to file test.csv...
(node:5313) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'open' of undefined
at main (ANN/index.js:150:36)
at Object. (ANN/index.js:201:1)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3

(node:5313) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

(node:5313) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.`

Error in query total / Total number of TRC20s has changed

I know it's a while since you've made any commits but I tried this out and only got error messages.

Just figured I'd let you know!

Writing to file output.csv...
Downloading details of TRC20 tokens...
Error in query total (got 10000, expected 24275), trying again...
Total number of TRC20s has changed, starting again
Error in query total (got 10000, expected 24275), trying again...
Error in query total (got 10000, expected 24275), trying again...
Error in query total (got 10000, expected 24275), trying again...
Error in query total (got 10000, expected 24275), trying again...
Error in query total (got 10000, expected 24275), trying again...
Error in query total (got 10000, expected 24275), trying again...
Total number of TRC20s has changed, starting again
Error in query total (got 10000, expected 24276), trying again...
Total number of TRC20s has changed, starting again
Error in query total (got 10000, expected 24275), trying again...
Total number of TRC20s has changed, starting again
Error in query total (got 10000, expected 24276), trying again...
Total number of TRC20s has changed, starting again
Error in query total (got 10000, expected 24276), trying again...
Error in query total (got 10000, expected 24276), trying again...
Error in query total (got 10000, expected 24276), trying again...
Error in query total (got 10000, expected 24276), trying again...
Error in query total (got 10000, expected 24276), trying again...

If I find time I might be able to submit a PR myself!

Thanks!

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.