tronprotocol / tronweb

Javascript API Library for interacting with the TRON Network
MIT License
423 stars 271 forks source link

getTokensIssuedByAddress not finding contact addresses on SunSwap #553

Closed catstersol closed 2 weeks ago

catstersol commented 2 weeks ago

TRON has a lot of new meme tokens on DexScreener. I am trying to find the tokenId for these to use in transactions.

getTokensIssuedByAddress isn't finding any token based on CA.

How do I get a token based on CA? For example this token; https://dexscreener.com/tron/txpp6hxd3cpcd5hsdmbc78iaicxrqijjm1

https://tronweb.network/docu/docs/6.0.0-beta.3/API%20List/trx/getTokensIssuedByAddress

Satan-web3 commented 2 weeks ago

getTokensIssuedByAddress is used for token 10 but Bull Tron is of token 20 type.

catstersol commented 2 weeks ago

@Satan-web3 what am I suppose to use then? How do I get token Id for contract address?

unicornonea commented 2 weeks ago

TRC20 has no meaning of token Id , contract address is the only identification.