I do not want to use any contract. The task is: make a plain transfer from web page (under my control, all is done by ethers.js) and listen to the wallet balanse update on backend. When I got receipient wallet balance update, I need to get the sender address. Please advise how to make if better
Jan 26, 2022, 7:46 PM
And this should work not for mainnet only, but for any EVM based blockchains, Binance for example
So EtherScan is not a solution, I should do all the work on my backend only
Jan 26, 2022, 7:47 PM
you have some ways to do it with ether.js, my only advice is don't try to reinvent the wheel nor do your whole back-end, look around and see if there is something where you can start before making it from scratch
see if moralis can help you with that
Jan 26, 2022, 8:16 PM
What is the best way to make one solution for any EVM based blockchain, and without any 3rd parties block explorers?
Jan 26, 2022, 8:18 PM
Don't know the best way, i mainly do back-end or solidity, not frontend yet. Check if ether.js could listen to balance changes or just do a loop after a transaction is sent, if the balance is updated do your things. But that's a frontend job
Jan 26, 2022, 8:35 PM
Yes, there is not a problem to catch balance change. But I need the last sender’s wallet address.
Jan 26, 2022, 8:36 PM
You can make a simple flask api server and save the last sender, serve it to front end everytime the tx function is fired, it asks the backend for the last sender address
Jan 26, 2022, 8:38 PM
The sending process is fully conttolled on my frontend side, I can create “data” fiend with transaction, for example and put there a sender’s wallet address.
Frontend snd backend should work without any connections, the frontend is a complete DApp.
Backend can only listen for events and analyze everything, what blockchain rpc can return
Jan 26, 2022, 8:40 PM
if you need to use a contract, you need bytecode.
With solidity, we can write in human readable way, but it then goes in bytecode, so you don't need it verified to use
With solidity, we can write in human readable way, but it then goes in bytecode, so you don't need it verified to use
Jan 26, 2022, 10:06 PM