Hello, how can I call transaction with TRC10 token value on TRON?

for example i wish send some ETH or TRX

address.call.value(amountCoin)(encodedData)

but how to be with tron TRC10 tokens?

Jan 6, 2021, 3:34 PM
Why do you need call when you have transfer?
Jan 6, 2021, 4:08 PM
Becouse I need call payable function and coins stored on contract
Help đŸ±
Jan 6, 2021, 4:14 PM
https://ethereum.stackexchange.com/questions/9705/how-can-you-call-a-payable-function-in-another-contract-with-arguments-and-send
Jan 6, 2021, 4:16 PM
You’ll need an IERC for that!
Jan 6, 2021, 4:18 PM
Tron?)
I don't
Jan 6, 2021, 4:32 PM
Do you know what ierc is?
Jan 6, 2021, 4:33 PM
I don't see this functionality for tokens, you could have a fallback instead
Jan 6, 2021, 4:33 PM
TRC 10 bro
(((
Jan 6, 2021, 4:34 PM
address.transferToken(uint256 tokenValue, trcToken tokenId)
Jan 6, 2021, 4:42 PM
From contract to contact via payable function
Jan 6, 2021, 4:44 PM
The above won’t work?
Jan 6, 2021, 4:45 PM
No
Jan 6, 2021, 4:45 PM
Umm sure, why not
Jan 6, 2021, 5:32 PM
But Tron used for TRC 10 msg.tokenValue and msg.tokenId
I think msg.value will be no working looking for this.
Jan 6, 2021, 5:36 PM
Ooh so you need to make the second contract aware that it is receiving token?
Like a token fallback eh?
Jan 6, 2021, 5:38 PM

© 2024 Draquery.com All rights reserved.