metachris / flashbots-ethers-example

Flashbots Ethers TypeScript example for Node.js and browser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flashbots Ethers Example

This project shows how to use Ethers to interact with Flashbots from JavaScript/TypeScript. The examples can be run in Node.js and the browser.

References:

Project structure

Getting started

Clone the repository and install the dependencies:

git clone git@github.com:metachris/flashbots-ethers-example.git
cd flashbots-ethers-example
yarn

Run the code in Node.js:

yarn cli

Run the code in the browser:

  • yarn esbuild-browser:watch
  • open browser-test.html in your browser

To change between examples, update the imports in src/cli.ts and src/browser.ts.

License

The code is free to use however you want, no attribution necessary.

Feedback

Feel free to reach out via Github issues on this repository, or via Twitter @metachris.

About

Flashbots Ethers TypeScript example for Node.js and browser

License:MIT License


Languages

Language:TypeScript 91.8%Language:JavaScript 5.5%Language:HTML 2.7%