@ledgerhq/hw-app-sui
v1.10.0
Published
Ledger Hardware Wallet Sui Application API
Readme
GitHub, Ledger Devs Discord, Developer Portal
@ledgerhq/hw-app-sui
Ledger Hardware Wallet Sui JavaScript bindings.
Are you adding Ledger support to your software wallet?
You may be using this package to communicate with the Sui Nano App.
For a smooth and quick integration:
- See the developers’ documentation on the Developer Portal and
- Go on Discord to chat with developer support and the developer community.
Dependecies
This package extends @mysten/ledgerjs-hw-app-sui
API
Table of Contents
Sui
Sui API
Parameters
transportTransportscrambleKey(optional, default"default_sui_scramble_key")verbose(optional, defaultfalse)
Examples
import Sui from "@mysten/ledgerjs-hw-app-sui";
const sui = new Sui(transport)getPublicKey
Retrieves the public key associated with a particular BIP32 path from the Ledger app.
Parameters
pathstring the path to retrieve.displayOnDevicewhether or not the address should be displayed on the device. (optional, defaultfalse)
Returns Promise<GetPublicKeyResult>
signTransaction
Sign a transaction with the key at a BIP32 path.
Parameters
pathstring The path to use when signing the transaction.txnUint8Array The transaction bytes to sign.options{bcsObjects: Array<Uint8Array>}? Additional options used for clear signing purposes.resolutionResolution? Additional data for token clear signing purposes.
Returns Promise<SignTransactionResult>
getVersion
Retrieve the app version on the attached Ledger device.
Returns Promise<GetVersionResult>
checkAppVersion
Retrieve the app version on the attached Ledger device.
Parameters
provideTrustedDynamicDescriptor
Provides trusted dynamic and signed coin metadata
Parameters
dataDescriptorInput An object containing the descriptor and its signature from the CAL
sendChunks
Convert a raw payload into what is essentially a singly-linked list of chunks, which allows the ledger to re-seek the data in a secure fashion.
