Coder Social home page Coder Social logo

hunterlong / ltcregtest-insight Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 34 KB

Dockerized Litecoin Regtest Server with Insight API for development and testing your LTC applications.

Shell 100.00%
litecoin ltc docker regtest testing insight insight-api

ltcregtest-insight's Introduction

Litecoin Regtest with Insight API Build Status Docker Build Status

Finally, a way to test your Litecoin applications using a Litecoin Regtest network for temporary use. All you have to do is start this docker image, and connect your application to the Insight API endpoint! I've also created a Bitcoin Regtest Docker image if that something you needed.

Start in Docker: docker run -it -p 3005:3005 hunterlong/ltcregtest-insight:latest

Get LTC Balance for address: http://localhost:3005/api/addr/mnJQyeDFmGjNoxyxKQC6MMFdpx77rYV3Bo/balance

I recommend reviewing the Insight API Documentation so you can use all the features of this image.

How does it work?

This Docker image will start a Litecoin Regtest Server with the Insight API so you can fetch UTXO's balances, and everything else. This Docker image is for developers who want to test their Litecoin applications without waiting for transactions to be confirmed on the real LTC testnet3 blockchain.

The wallets below have a couple LTC in them so you can begin testing quickly! New blocks are mined automatically every 5 seconds!

Wallet Private Keys

The private keys are based on a mnemonic phrase by default. For ease of use, use these private keys while interacting with your application.

            ADDRESS                |                     PRIVATE KEY

mnJQyeDFmGjNoxyxKQC6MMFdpx77rYV3Bo | cVVGgzVgcc5S3owCskoneK8R1BNGkBveiEcGDaxu8RRDvFcaQaSG
mzdF3oEx8mKrpGb5rVnTE7MhQfL8N8oSnW | cRGkipHiYFRSAgdY9NjUT7egHTuNXoKYWQea3kWVbkSJAs4VDi8r
mtdVMhiWWmegkkBhzYDrz84yfgofPNLNmb | cTc8XCQZuSt5E1LArqCxyaXhn1cQkvcBMAGQ159raPSQTuBpHWdi
mqNnZTyFxhB6EzF1iDEAp9enrT84fwd1X5 | cQ9JwsoYHC2Md41uDbczDVpsuWAeYjDDrDiGbCBZ4stZhZvLZWj8
mnk2URqujBqMEfhALMby1WZHoBRauW37Kg | cQrY4VypAuemJtHmNNJLyx1SNjY7mpfkdQEJpccpLSvan5YoMAkM

Mnemonic phrase: myth like bonus scare over problem client lizard pioneer submit female collect

Implement Testing on Travis

To use this with Travis, you'll need to add a couple things to your .travis.yml file. insight-api-tester is a basic application that uses this for testing. Build Status

sudo: required

notifications:
  email: false

services:
  - docker

before_install:
  - docker run -it -d -p 3005:3005 hunterlong/ltcregtest-insight:latest

script:
  - sleep 30        # give some time for LTC server to start.
  - npm test        # your test command for app, API endpoint will be at http://localhost:3005/api

Why use this Docker Image?

You are probably working on a Litecoin application and you might be doing automated testing on Travis-CI, Drone, etc. Using this image will allow your testing to fully test the blockchain transaction features of your application. You would use the addresses and private keys above for testing transactions in your tests.

ltcregtest-insight's People

Contributors

hunterlong avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.