Closed catstersol closed 2 weeks ago
TronWeb have no any samples of a Swap code as it is the project's own code. TronWeb is just a pure JS SDK. Functions of sendTrx
and sendToken
are used to send the trc10 token and native TRX on TRON network.
Do you have any samples of a Swap code using tron@beta?
I want to sell TRX to buy a meme coin and then sell meme coin for TRX.
Are these used to buy in sell or just send? in the JavaScript SDK I saw trxToTokenTransferInput but not see example in TypeScript BETA package.
I see purchaseToken which might be for swap but I don't see anything about selling tokens.
Thanks