{"id":20060600,"url":"https://github.com/oasisprotocol/ionic-ledger-hw-transport-ble","last_synced_at":"2026-02-10T21:07:02.023Z","repository":{"id":190151053,"uuid":"681719744","full_name":"oasisprotocol/ionic-ledger-hw-transport-ble","owner":"oasisprotocol","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-17T10:45:30.000Z","size":180,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-01-29T03:54:07.754Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oasisprotocol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-22T15:55:54.000Z","updated_at":"2025-01-17T10:45:30.000Z","dependencies_parsed_at":"2023-08-23T12:48:56.160Z","dependency_job_id":null,"html_url":"https://github.com/oasisprotocol/ionic-ledger-hw-transport-ble","commit_stats":null,"previous_names":["oasisprotocol/ionic-ledger-hw-transport-ble"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oasisprotocol%2Fionic-ledger-hw-transport-ble","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oasisprotocol%2Fionic-ledger-hw-transport-ble/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oasisprotocol%2Fionic-ledger-hw-transport-ble/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oasisprotocol%2Fionic-ledger-hw-transport-ble/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oasisprotocol","download_url":"https://codeload.github.com/oasisprotocol/ionic-ledger-hw-transport-ble/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236730816,"owners_count":19195684,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-11-13T13:15:52.172Z","updated_at":"2026-02-10T21:07:02.011Z","avatar_url":"https://github.com/oasisprotocol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ionic-ledger-hw-transport-ble\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![CI test status][github-ci-tests-badge]][github-ci-tests-link]\n\n\u003c!-- markdownlint-disable line-length --\u003e\n[github-ci-tests-badge]: https://github.com/oasisprotocol/ionic-ledger-hw-transport-ble/workflows/ci-test/badge.svg\n[github-ci-tests-link]: https://github.com/oasisprotocol/ionic-ledger-hw-transport-ble/actions?query=workflow:ci-test+branch:master\n\u003c!-- markdownlint-enable line-length --\u003e\n\n**Ledger Hardware Wallet Bluetooth BLE transport for Ionic.**\n\n```shell\nyarn add @oasisprotocol/ionic-ledger-hw-transport-ble\n```\n\n### Pre-requisite\n\n-   [**Install and link library `@capacitor-community/bluetooth-le` + configure your app for Bluetooth permissions**](https://github.com/capacitor-community/bluetooth-le) (Open the link for documentation)\n-   **global.Buffer** available. Typically `global.Buffer = require(\"buffer\").Buffer;` that can be placed in a `polyfill.js` and imported with `import \"./polyfill\";` at first line of the main JavaScript entry file.\n\n## Minimal getting started\n\n`@oasisprotocol/ionic-ledger-hw-transport-ble` works like any of `@ledgerhq/hw-transport` libraries.\n\nThe difference here is that the `list()` is not implemented, only `create()`.\nCreate doesn't always scan for devices, it tries to reuse previously selected\ndevice.\n\n\u003e Important: you will also have to deal with specifics of Bluetooth BLE, for instance, you need to request the LOCATION permission on Android!\n\nHere is a gist of the most important parts required.\n\n### Check for Bluetooth state\n\n```ts\nimport BleTransport from \"@oasisprotocol/ionic-ledger-hw-transport-ble\";\n\n// Check if @capacitor-community/bluetooth-le is setup\nBleTransport.isSupported()\n\n// Check for bluetooth status\nBleTransport.isEnabled()\n```\n\n### Connect to device\n\n```ts\nconst transport = await BleTransport.create()\n```\n\n**and now we can just use the transport like any other Ledger transport!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foasisprotocol%2Fionic-ledger-hw-transport-ble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foasisprotocol%2Fionic-ledger-hw-transport-ble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foasisprotocol%2Fionic-ledger-hw-transport-ble/lists"}