Skip to content

bogatyy/bancor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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].

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages