ranploy

Generate tx data payload to deploy any random hex string to Ethereum as a smart contract


License
MIT
Install
pip install ranploy==0.0.2

Documentation

Ranploy

License: MIT Codacy Badge PyPI Code style: black

Tool to generate the transaction payload data that will deploy a random hex string as a smart contract.

Install

$ pip install --user ranploy

Example

$ python main.py --bytecode 11223344
6004600d60003960046000f30011223344

You then need to create a transaction and use this as the payload data

web3.eth.sendTransaction({from: "0x8d26D6d498a01243820154c7Ddb63b47c00DbF6e", data: "0x6004600d60003960046000f30011223344"})

Your contract will have this bytecode

web3.eth.getCode("0xDdB083baD281D7242FF69E36c7565b003785cb1A")
'0x11223344'