An open API service indexing awesome lists of open source software.

https://github.com/adrianmcli/ethbtc-example


https://github.com/adrianmcli/ethbtc-example

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

# Example

# Usage

1. Clone this repo.

2. Run `npm install` at project root.

3. Create a `.env` file with the following content:

```
MAINNET_NODE_URL=https://mainnet.infura.io/v3/
PRIV_KEY=
```

4. Run `npm run chain` to start a local test-chain forked off of mainnet state.

5. Run `npm start` to trigger the script.

# Chain output

![chain output](./assets/chain_output.png)

# Script output

![script output](./assets/script_output.png)