Create smart contract procedure on BSC chain

Job ID: 33817906

Budget: $30 – $250 USD

We need a pythong code to write a transfer between accounts made with smart contract with the following step:

a) Check if the source wallet have enought balance to send payment
b) if not have enought balance sed a mail to fillup the source wallet
c) Serach all the payment record revenue with flag paid UNFLAG
d) pay from source wallet all the destination wallet all the record with paid flag UNSET
e) Set flag PAID to set and TxID of the transaction and save the current record
f) send by mail the list of all the successfull payment