Skip to content
Generate tx data payload to deploy any random hex string to Ethereum as a smart contract
Python Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.scannerwork
ranploy
scripts
.gitignore
Readme.md
nohup.out
setup.py

Readme.md

Ranploy

License: MIT Codacy Badge PyPI Code style: black Maintainability Rating

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

Install

$ pip install --user ranploy

Demo

asciicast

Example

$ 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'
You can’t perform that action at this time.