@ledgerhq/hw-app-canton
Version:
Ledger Hardware Wallet Canton Application API
77 lines (45 loc) • 2.74 kB
Markdown
<img src="https://user-images.githubusercontent.com/4631227/191834116-59cf590e-25cc-4956-ae5c-812ea464f324.png" height="100" />
[](https://github.com/LedgerHQ/ledger-live/),
[](https://developers.ledger.com/discord-pro),
[](https://developers.ledger.com/)
Ledger Hardware Wallet Canton JavaScript bindings.
***
You may be using this package to communicate with the Canton Nano App.
For a smooth and quick integration:
* See the developers’ documentation on the [Developer Portal](https://developers.ledger.com/docs/transport/overview/) and
* Go on [Discord](https://developers.ledger.com/discord-pro/) to chat with developer support and the developer community.
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
* [Canton](
* [Parameters](
* [getAddress](
* [Parameters](
* [signTransaction](
* [Parameters](
* [getAppConfiguration](
* [MockCantonDevice](
Canton BOLOS API
* `transport` **Transport**&
* `scrambleKey` (optional, default `"canton_default_scramble_key"`)
Get a Canton address for a given BIP-32 path.
* `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** a path in BIP-32 format
* `display` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** whether to display the address on the device (optional, default `false`)
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<CantonAddress>** the address and public key
Sign a Canton transaction.
* `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** a path in BIP-32 format
* `rawTx` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** the raw transaction to sign
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<CantonSignature>** the signature
Get the app configuration.
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<AppConfig>** the app configuration including version
Mock Canton "@ledgerhq/hw-app-canton" device implementation for development and testing