GithubHelp home page GithubHelp logo

need example getTokenBalance about tron-api HOT 6 OPEN

iexbase avatar iexbase commented on August 16, 2024
need example getTokenBalance

from tron-api.

Comments (6)

SmithRobert-coin avatar SmithRobert-coin commented on August 16, 2024 2

Is it solved? You can get the trc20 ID there

from tron-api.

aralsoft avatar aralsoft commented on August 16, 2024 1

from tron-api.

atlaschiew avatar atlaschiew commented on August 16, 2024 1

there is a function but i cant found my tokenID. hown can i generate wallet for my token? and i want getToken balance with my wallet address. need exaple over php

hope this helps, https://www.btcschools.net/tron/tron_get_balance.php

from tron-api.

SmithRobert-coin avatar SmithRobert-coin commented on August 16, 2024

您为什么不讨论头巾呢?
2020年11月12日星期四03:59,YFXY @.***>写道:解决了吗?您可以在那里获得trc20 ID-因为您已订阅此线程,所以您会收到它。直接回复此电子邮件,在GitHub < #62(评论) >上查看,或取消订阅< https://github.com/notifications/unsubscribe-auth/AASZENVND426LVKGVSJZKC3SPNMTRANCNFSM4TMWT7WQ >。
-阿里·昂德(Ali Onder)

what?hijab???

from tron-api.

zc3r avatar zc3r commented on August 16, 2024

$abi = '[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"sender","type":"address"},{"name":"recipient","type":"address"},{"name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"recipient","type":"address"},{"name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}]';
$abiAry = json_decode($abi, true);
$function = "balanceOf";
$params = [ str_pad(base58check2HexString($address),64,"0", STR_PAD_LEFT) ];
$tron->getTransactionBuilder()->triggerConstantContract($abiAry, base58check2HexString('TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t'),$function, $params, base58check2HexString($address));

from tron-api.

zc3r avatar zc3r commented on August 16, 2024

微信截图_20231009164907

from tron-api.

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.