Skip to content

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

Notifications You must be signed in to change notification settings

hunterlong/ltcregtest-insight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages