Can someone help me.
I wrote a solidity contract in contract there is a fee for every transaction that goes to the clarity wallet, how can I write code to get data how much has been sent from the contract to the clarity wallet?

Oct 15, 2021, 7:17 AM
I think you should write a read only function that returns the balance of address(this)
Oct 15, 2021, 7:31 AM
Yes, this is for read only, function returns balance of address(this) isn't it just to find out the balance in the contract? Or am I wrong?

I want to know how many contracts have been sent to address,
for example

The contract sends 100 tokens to address A, and I want to know in read only that the contract has sent 100 tokens to address A
Oct 15, 2021, 7:36 AM
I’m assuming you have an event on your contract that transfers the token, an event that emits when the transfer goes through
Oct 15, 2021, 7:42 AM
How to write code? I'm newbie šŸ˜€
Oct 15, 2021, 8:32 AM
Lol learning bro
Oct 15, 2021, 8:40 AM
šŸ™ˆšŸ™ˆ
Oct 15, 2021, 9:15 AM

Ā© 2024 Draquery.com All rights reserved.