Best laravel framework open-source packages.

Blockchain Explorer

This is a Laravel REST API that fetches coin data from CoinGecko and interacts with the Blockchain (Create and operate wallet, transact etc)
Updated 3 months ago

Blockchain Explorer App

Implements the following:

  1. Queries blockchain for crypto data
  2. Creates a crypto wallet and transacts
  3. PHPUnit tests
  4. JWT authentication
  5. Laravel JSON API (LJA)
  6. MYSQL DB

Outcome

  1. A wallet used to hold bitcoins and carry out transactions.

Set up

  1. Clone repo and run composer install
  2. php artisan migrate to run migrations
  3. php artisan serve to start the app
  4. Run wallet service locally (https://github.com/blockchain/service-my-wallet-v3 and expose service url)

Available endpoints

  1. POST: http://localhost:8000/api/register Body:{name,email,password}
  2. POST: http://localhost:8000/api/login Body:{email,password}
  3. GET: http://localhost:8000/api/coins [fetch list of crypto currencies from Coin Gecko]
  4. GET: http://localhost:8000/api/coins/ethereum [Get coin data and ticker data]
  5. POST: http://localhost:8000/api/wallet Body:{email,label,password,private_key}
  6. GET: http://localhost:8000/api/wallet/{wallet_id}
  7. GET: http://localhost:8000/api/wallet/{wallet_id}/address/{address}/balance

Tests

  1. vendor/bin/phpunit

To Do

  1. Add custom make file for easy terminal commands
  2. Add JSON-specific exception handling
  3. Fix Deprecation warning: require.Blockchain/Blockchain is invalid.
  4. Add JSON API spec