{"id":43223752,"url":"https://github.com/interledger-deprecated/ilp-plugin-virtual","last_synced_at":"2026-02-01T09:17:49.368Z","repository":{"id":57271870,"uuid":"60288253","full_name":"interledger-deprecated/ilp-plugin-virtual","owner":"interledger-deprecated","description":"ILP virtual ledger plugin for directly transacting connectors","archived":false,"fork":false,"pushed_at":"2017-07-07T10:08:55.000Z","size":390,"stargazers_count":6,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T08:32:37.160Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/interledger-deprecated.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-02T18:35:29.000Z","updated_at":"2018-10-29T19:43:04.000Z","dependencies_parsed_at":"2022-08-25T06:40:30.635Z","dependency_job_id":null,"html_url":"https://github.com/interledger-deprecated/ilp-plugin-virtual","commit_stats":null,"previous_names":["interledger/ilp-plugin-virtual"],"tags_count":67,"template":false,"template_full_name":null,"purl":"pkg:github/interledger-deprecated/ilp-plugin-virtual","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interledger-deprecated%2Filp-plugin-virtual","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interledger-deprecated%2Filp-plugin-virtual/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interledger-deprecated%2Filp-plugin-virtual/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interledger-deprecated%2Filp-plugin-virtual/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/interledger-deprecated","download_url":"https://codeload.github.com/interledger-deprecated/ilp-plugin-virtual/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interledger-deprecated%2Filp-plugin-virtual/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28974588,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T08:16:14.655Z","status":"ssl_error","status_checked_at":"2026-02-01T08:06:51.373Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-01T09:17:49.283Z","updated_at":"2026-02-01T09:17:49.362Z","avatar_url":"https://github.com/interledger-deprecated.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ilp-plugin-virtual [![npm][npm-image]][npm-url] [![circle][circle-image]][circle-url] [![codecov][codecov-image]][codecov-url]\n\n[npm-image]: https://img.shields.io/npm/v/ilp-plugin-virtual.svg?style=flat\n[npm-url]: https://npmjs.org/package/ilp-plugin-virtual\n[circle-image]: https://circleci.com/gh/interledgerjs/ilp-plugin-virtual.svg?style=shield\n[circle-url]: https://circleci.com/gh/interledgerjs/ilp-plugin-virtual\n[codecov-image]: https://codecov.io/gh/interledgerjs/ilp-plugin-virtual/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/interledgerjs/ilp-plugin-virtual\n\n\u003e ILP virtual ledger plugin for directly transacting connectors\n\n### NOTE:\n\nThe current version of `ilp-plugin-virtual` is designed to be used in [ILP\nKit](https://github.com/interledgerjs/ilp-kit). An HTTP server is required in\norder to pass RPC calls to the plugin, and to perform authorization on RPC calls.\n\n## Installation\n\n``` sh\nnpm install --save ilp-plugin-virtual\n```\n\n## Usage\n\nYou can test out the ledger plugin by running `npm test` on your machine.  To\ninclude debug information during the test, run `DEBUG=ilp* npm test`.\n\nWhen instantiating the plugin, make sure to pass in an object with the right fields: \n\n```js\n{\n  \"maxBalance\": \"highest balance allowed\",\n  \"prefix\": \"prefix for ilp address\",\n  \"secret\": \"your secret. your peer must know the corresponding public key.\",\n  \"peerPublicKey\": \"base64url encoded public key of your peer\",\n  \"rpcUri\": \"https://example.com/rpc\", // this is used to communicate with your peer (see below)\n  \"_store\": { /* this object will be created by the connector */ },\n  \"info\": { /* the object to be returned by getInfo */ }\n}\n```\n\n# Receiving RPC calls\n\nIn order to use plugin virtual, you need an HTTP endpoint that passes calls to the plugin.\nThe url must take one query parameter (`method`), as well as a JSON body. The method parameter\nand parsed body must be passed to the plugin like so:\n\n```js\nplugin.receive(method, body)\n```\n\n# Generate a trustline prefix\n\nIf you want to generate a trustline prefix from a secret key, peer's public key, and currency,\nyou can access the method through the token class:\n\n```js\nconst Token = require('ilp-plugin-virtual/src/util/token')\nconst prefix = Token.prefix({\n  secretKey: 'o9Lt0oZFek1ArM_A0HUAq8M8edRuoSeLjX8i10sVUiY',\n  peerPublicKey: 'KRixgcBCBdyQln7IBYiopjuNO78QSFtXgOwP1sbsCSk',\n  currency: 'USD'\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterledger-deprecated%2Filp-plugin-virtual","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finterledger-deprecated%2Filp-plugin-virtual","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterledger-deprecated%2Filp-plugin-virtual/lists"}