Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TRC20 查询问题 #8

Open
ytdaxin opened this issue Jun 2, 2021 · 8 comments
Open

TRC20 查询问题 #8

ytdaxin opened this issue Jun 2, 2021 · 8 comments

Comments

@ytdaxin
Copy link

ytdaxin commented Jun 2, 2021

老大请教个问题

按 TRC20Test.php

$this->getTRC20()->balance($address)

返回错误 CONTRACT_VALIDATE_ERROR

这是需要怎么解决呢

@Fenguoz
Copy link
Owner

Fenguoz commented Jun 2, 2021

提示是合约地址验证错误。检查下合约信息参数是否有误

@ytdaxin
Copy link
Author

ytdaxin commented Jun 2, 2021

const CONTRACT = [
'contract_address' => 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t', // USDT TRC20
'decimals' => 6,
];

复制你的 test . 没有改动啊

@ytdaxin
Copy link
Author

ytdaxin commented Jun 2, 2021

const ADDRESS = 'TGytofNKuSReFmFxsgnNx19em3BAVBTpVB';
const CONTRACT = [
'contract_address' => 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t', // USDT TRC20
'decimals' => 6,
];

@ytdaxin
Copy link
Author

ytdaxin commented Jun 2, 2021

方便加一下QQ吗

@Fenguoz
Copy link
Owner

Fenguoz commented Jun 2, 2021

$uri = 'https://api.shasta.trongrid.io';
//改成
$uri = 'https://api.trongrid.io';

测试网这个合约地址会报错,我等下把readme更新下。

@ytdaxin
Copy link
Author

ytdaxin commented Jun 2, 2021

好的。https://kaihei.co/GymA7P 也可以用这个交流 国内 DC

@ytdaxin
Copy link
Author

ytdaxin commented Jun 2, 2021

你进来又退了吗

@ytdaxin
Copy link
Author

ytdaxin commented Jun 2, 2021

getTRC20 是不是还要加 token

@mgx888 mgx888 mentioned this issue Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants