Skip to content

livepeer/minecraft

Repository files navigation

Minecraft: Livepeer Token Miner

Getting Started

There are two ways to use this DApp:

1. Use the IPFS Gateway

If you choose to use the latest copy of this DApp on IPFS. There are two options:

  • Use a web3-enabled browser to Generate a proof and submit the token mining transaction
  • Or visit https://ipfs.io/ipfs/QmUvAFQZxbgMCqCMLUSj2kQBpZUhj5qi8KhmPDVvv9apfj?address=ETH_ADDRESS to generate a proof. This proof can be used to submit a mining transaction through other means, such as MyEtherWallet. Be sure to replace ETH_ADDRESS with the address you'd like to generate a proof for.

2. Build and run locally

To install dependencies and start this dApp locally, run the following command:

yarn && yarn start

The command line output should display the url to visit in order to use this dApp.

How to Mine LPT

Step 1: Load Your Account

Once you are logged into web3 wallet, the Dapp will automatically pull in the address, ETH, and LPT balances for your wallet.

Step 2: Load Merkle Input Data

Click "Load" next to the Input Data URL text field, to download the compressed binary of all account addresses that are eligible to mine Livepeer Token. This is a big file and will take a while to load. After the download completes, your proof will begin generating automatically.

If your selected account is eligible to mine, the proof will appear in the textarea below the url input.

Step 3: Mine Your Token

You may now mine your LPT by clicking “Submit Proof”. Confirm your transaction details, submit, and once the transaction completes successfully, your LPT balance should show a value greater than “0.0”. Congratulations, now that you're an official Livepeer Token holder, you're ready to participate in the protocol! 🎉

Head over to the Protocol Explorer and start delegating »

Troubleshooting

It’s telling me Web3 is not enabled

In order to mine LPT, you will need to use a web3-enabled browser such as Mist or a browser extension such as MetaMask.

My account never loads

You may need to unlock your account through your browser extension or plugin. Also be sure you are connected to the Ethereum Main Network (not Rinkeby, Ropsten, etc).

I couldn’t generate a proof

Only account address with a balance >= .1 ETH prior at Ethereum block #5264265 are able to generate LPT through this dapp. If your address does not fit that criteria, you won’t be able to mine LPT with this dapp.

Note: There is also a possibility the input data you are providing is incorrect or not sorted properly. If you think this may be the case, please refer to the mining specification for more information: https://github.com/livepeer/merkle-mine/blob/master/SPEC.md