Tool to generate the transaction payload data
that will deploy a random hex string as a smart contract.
$ pip install --user ranploy
$ ranploy --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'