bogatyy / Bancor
Code corresponding to my analysis of Bancor front-running
Stars: ✭ 109
Programming Languages
python
139335 projects - #7 most used programming language
Front-running Bancor
This code is supplementary to the blog post Front-running Bancor in 150 lines of Python with Ethereum API, which expands on the research done in Cornell and implements a front-running attack as a mere full node (no need to be a miner).
Usage
Install and run the geth
Ethereum client first:
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository -y ppa:ethereum/ethereum
$ sudo apt-get update
$ sudo apt-get install ethereum
$ geth --rpc --unlock 0xYOUR_ACCOUNT_ADDRESS
......wait for the chain to sync........
The front-runner code automatically attaches to a running geth
client:
$ sudo pip install requests
$ python one_frontrun.py
Contact
For any bugs in the code, raise a GitHub issue or send me a pull request. For more general discussions, feel free to send me an email at [email protected].
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].