All Projects → celer-network → celer-light-client

celer-network / celer-light-client

Licence: MIT license
TypeScript implementation of a Celer client

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
shell
77523 projects

Projects that are alternatives of or similar to celer-light-client

layer2-finance-contracts
Contracts for the Layer 2 Finance DeFi aggregator, powered by optimistic rollup.
Stars: ✭ 40 (+25%)
Mutual labels:  layer-2
fuel-v1-contracts
⚡ The Fuel optimistic rollup in Yul+ for the Ethereum Virtual Machine
Stars: ✭ 41 (+28.13%)
Mutual labels:  layer-2
storm-spec
Specification for Storm: L2/L3 distributed storage and messaging with economic incentivisation leveraging LNP/BP ecosystem
Stars: ✭ 62 (+93.75%)
Mutual labels:  layer-2
sgn-v2-contracts
Smart Contracts for Celer State Guardian Network (SGN) V2 and cBridge V2
Stars: ✭ 74 (+131.25%)
Mutual labels:  layer-2

Celer Light Client

Build Status npm version

This is a TypeScript implementation of a Celer client capable of sending and receiving conditional payments via state channels. Compared to a full Celer node, the light client does NOT have the capability of relaying payments.

API docs

Auto-generated API docs are available here. The APIs on the client object are listed here.

Try it out

  1. Make sure you have MetaMask installed on your browser and you are on the Ropsten testnet.
  2. Check out the repo.
  3. Run yarn install.
  4. Run yarn demo.
  5. A demo page will be available at localhost:1234. It is a bare-bone static page that implements a simple off-chain wallet.
  6. Click "Connect Celer wallet" and sign one pop-up message.
  7. Click "Open channel", sign one pop-up message, sign one transaction, and sign two pop-up messages after the transaction is mined.

Now you are free to send payments to a recipient that has also opened a channel, or you can send to the Celer Community OSP :)

The code is pretty self-explanatory.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].