Git Product home page Git Product logo

Comments (4)

farukterzioglu avatar farukterzioglu commented on May 24, 2024

Hi, you welcome

Balance and transaction queries can not be send with this project.
You need to send http requests to a Tron node, like TronGrid or if there is any, you need to use some indexer services (paid or free) to get that information.

For example to get the balance for an address;

curl --location --request POST 'https://api.trongrid.io/walletsolidity/getaccount' \
--header 'Content-Type: application/json' \
--data-raw '{
    "address": "TSFa2......",
    "visible": true
}'

You can't get transactions of an address from node directly. You need to scan the blockchain block by block, transaction by transaction to check it that address received a transaction.
Or you can use an existing indexer service if you find any, I don't know any.

from hdwallet.

sinaptech avatar sinaptech commented on May 24, 2024

@farukterzioglu thanks. and also for transfering trx or trc20 token I should use other APIs?

from hdwallet.

farukterzioglu avatar farukterzioglu commented on May 24, 2024

TRX transfer kinda easy, you can check here;
https://github.com/farukterzioglu/HDWallet/tree/master/src/HDWallet.Tron

But transferring TRC20 requires more stuff also regarding to Ethereum, you can start to read Tron docs for this.

from hdwallet.

sinaptech avatar sinaptech commented on May 24, 2024

@farukterzioglu thanks

from hdwallet.

Related Issues (20)

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.