Python SWAP Metamask BSC Network contract

Job ID: 31142961

Budget: €30 – €250 EUR

The project consists in creating a python script that makes SWAP from the metamask wallet to a contract indicating the amount and also performs the reverse procedure by transferring all the tokens to the metamask wallet.

Everything has to work from the command line, no GUI is needed

For both BUY and SELL, the system will have to calculate the GAS and try to sell up to a maximum of slippage
(loop if excecute or max slipage)

BUY example
SWAP from contract Metamask wallet

buy.py <CONTRACT> <AMOUNT>
Contract = the contract where I want to transfer the amount
Amount = value in BNB of the amount to be transferred

SELL example
Contract SWAP to Metamask wallet

sell.py <CONTRACT>
Contract = the contract where I want to transfer the amount

It will transfer all the tokens present on the contract to the metamask wallet
Related categories: Python Blockchain Ethereum