简体   繁体   English

web3钱包不接受系绳币

[英]web3 wallet not accepting tether coin

I am making a website that can allow users to have Etherium wallet for everyone.我正在制作一个网站,让用户可以为每个人拥有 Etherium 钱包。 So I used web3 Api to create wallets.所以我使用 web3 Api 创建钱包。

from web3 import Web3

web3 = Web3(Web3.HTTPProvider('https://mainnet.infura.io/v3/b2862c602e244afa81a6b43d6d5a0a1a'))
web3.eth.account.create(#name)

result:结果:

0xCcE984c41630878b91E20c416dA3F308855E87E2

So I sent 500 usdt in order to check if this wallet is valid and receive USDT / ETH所以我发送了 500 usdt 来检查这个钱包是否有效并收到 USDT / ETH

web3.eth.get_balance('0xCcE984c41630878b91E20c416dA3F308855E87E2')

However, even though I've waited for 5hours It only tells me that the balance is zero.但是,即使我等了 5 个小时,它也只告诉我余额为零。

Is etherium wallet cannot receive USDT coin?以太币钱包是不是收不到USDT币? or, I made a mistake.或者,我犯了一个错误。 Please help me.请帮我。 Thanks!谢谢!

This is because you created the ethereum address using web3.py on the main ethereum blockchain and not on tether's smart contract that resides inside of the ethereum blockchain.这是因为您在以太坊主区块链上使用 web3.py 创建了以太坊地址,而不是在驻留在以太坊区块链内部的 Tether 智能合约上。

You need to create the address inside the smart contract using the smart contract's method您需要使用智能合约的方法在智能合约中创建地址

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM