Coder Social home page Coder Social logo

laravel-electrum's Introduction

Electrum for Laravel 5.4+

Author: Tim Schipper [email protected]
Description: Electrum support for Laravel with optional Vue wallet component.

Wallet Web Interface

Latest Version on Packagist Packagist Scrutinizer Build StyleCI Quality Score Total Downloads

WARNING: Be safe and never ever put your private keys on a webserver, use a watch only wallet or even better, get and setup a hardware wallet, so your keys and coins will be safe.

Installation:

Require this package in your composer.json and update composer. This will download the package.

composer require araneadev/laravel-electrum

After updating composer, add the ServiceProvider to the providers array in config/app.php

AraneaDev\Electrum\ElectrumServiceProvider::class,

Requirements:

  • PHP >=7.0
  • Laravel >= 5.4+
  • Electrum >= 2.9.3

Setup Electrum

Download and install Electrum if you haven't done so yet.

electrum create   
electrum daemon start
electrum setconfig rpcport 7777   
electrum daemon load_wallet   

Optional Web Interface installation

Requirements

  • Clipboard.js >= 1.7.1
  • Moment.js >= 2.4.0
  • Vue * >= 2.1.10
  • Vue QR Component >= 2.1.1
  • Vue2 Bootstrap Modal > 0.1.11
  • Axios * >= 0.16.2
  • Lodash * >= 4.17.4
  • Bootstrap * >= 3.3.7

* Included in Laravel 5.4+

Install Clipboard.js, Moment.js and Vue QR Component

npm install clipboard --save-dev
npm install moment --save-dev
npm install vue2-bootstrap-modal --save-dev
npm install vue-qrcode-component --save-dev

Publish the assets

php artisan vendor:publish --provider=AraneaDev\Electrum\ElectrumServiceProvider

Enable the Web interface in config/electrum.php.

[
    ....
    'webinterface'=> [
        'enabled' => true,
        ....
    ]
]

Then add the following line to your app.js:

Vue.component('electrum-wallet', require('./vendor/araneadev/Electrum.vue'));

Available Commands

Electrum's JSON-RPC methods are mapped to artisan commands:

php artisan electrum [METHOD] [--address=ADDRESS] [--txid=TXID] [--key=KEY]

laravel-electrum's People

Contributors

araneadev avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.