A Simple Reward system for Cardano written in Phoenix Live View
Use the following delegator address as an example:
addr_test1qp4fsmany20eqfjwcr47tspq2xly9r8qf7yx3e502cfqernqvt7dxydvf9k33mjl2fvj3fanz9gqrrkwaxzn6cx20p7sn4ea7d
This should display you are eligible 🎉
- Create an address on Cardano's Preview Testnet
- Grab some tADA from the faucet
- Delegate to the JUNGLE Stake Pool on Preview testnet using the following pool id:
pool1j3x329u0uxh9s9vjvsad9kx37tzal8gndz6ttxumcz4nw947djw
- Wait a few seconds for the transaction to go through
- Use a staking address (must include staking information) to check for eligibility. If your delegation went through, then you should be eligible!
An existing Blockfrost project_id is required to be set on following ENV:
BLOCKFROST_PROJECT_ID=""
To start your Phoenix server:
- Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.setup
- Start Phoenix endpoint with
mix phx.server
or inside IEx withiex -S mix phx.server
Now you can visit localhost:4000
from your browser.