Giter Club home page Giter Club logo

wallet-receiving-example's Introduction

This repo is a quick introduction for digital wallets looking to enabled their users to receive ILP payments through Interledger

It consists of the following:

  • Quickstart ILP Connector (src/connector.js)
  • SPSP and STREAM Server for receiving the payments (src/spsp-stream.js)
  • Test Payment Script (src/test-send-stream-payment.js)

Connector

The connector is your gateway to the Interledger network through either an uplink provider (ie Strata) or direct peering relationship with business entities on the network (ie Coil) and your internal ILP infrastructure.

The provided connector configuration provides you with three accounts:

  • Uplink
  • SPSP+Stream - Account for your spsp and STREAM server to connect to
  • temp - Temp account that is used to connect to to test sending payments.

SPSP + Stream

SPSP and Stream work in conjunction to allow you to receive ILP payments on behalf of your users. SPSP hosts your Payment Pointers and STREAM deals with accepting incoming money.

Wallets are expected to add business logic within the component to deal with crediting the correct users wallet with incoming payments. Places where business logic is expected is marked with TODO

Test Payment Script

The test script is designed to be a quick an easy way to test payments to ensure your business logic is correct.

Run

In different terminals run in this order

  1. node src/connector.js
  2. node src/spsp-stream.js

You will now have a basic infrastructure running. You can test if it is working by running

  1. node src/test-send-stream-payment.js

You should see a successful payment go through

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.