Comments (6)
Is it solved? You can get the trc20 ID there
from tron-api.
from tron-api.
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.
您为什么不讨论头巾呢?
2020年11月12日星期四03:59,YFXY @.***>写道:解决了吗?您可以在那里获得trc20 ID-因为您已订阅此线程,所以您会收到它。直接回复此电子邮件,在GitHub < #62(评论) >上查看,或取消订阅< https://github.com/notifications/unsubscribe-auth/AASZENVND426LVKGVSJZKC3SPNMTRANCNFSM4TMWT7WQ >。
-阿里·昂德(Ali Onder)
what?hijab???
from tron-api.
$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.
from tron-api.
Related Issues (20)
- iexbase/tron-api 和digitaldonkey/ethereum-php 的guzzlehttp/guzzle 版本冲突
- rate limit error HOT 1
- how to event trc20 token transaction and fee HOT 1
- Having Issue with package HOT 4
- How can i generate contract address ?
- Hii
- Please fix this bug...
- How to call function in contract
- How to convert from private key to address
- why cannot listen transaction events
- 钱包地址只有TRX转账 权限,用该私钥转账trx 签名失败!! HOT 8
- PHP 8.0.x cannot be downloaded HOT 1
- php8支持 HOT 2
- getTransactionCount
- why always listens to erc20 ABI and usdterc20 address events HOT 1
- $tron->contract() throws exception
- Request content updates for Stake2.0 HOT 3
- Please upgrade phpseclib/phpseclib package to v3+
- [Need help] estimate energy
- NEED HELP: DelegateResource method add to the Library. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tron-api.