This package provides a basic client library to communicate with the Mina App running in a Ledger Device
We recommend using the npmjs package in order to receive updates/fixes.
Operation | Response | Command | Notes |
---|---|---|---|
getAppName | { name: string, version: string } | None | Returns app name and version |
getAppVersion | { version: string } | None | Returns app version |
Operation | Response | Command | Notes |
---|---|---|---|
getAddress | { publicKey: string } | account + showAddrInDevice | Retrieves public key for given account |
Operation | Response | Command | Notes |
---|---|---|---|
signTransaction | { signature: string } | txType + senderAccount + senderAddress + receiverAddress + amount + fee + nonce + validUntil + memo + networkId | Signs a Mina transaction |
signMessage | { field: string, scalar: string, raw_signature: string, signed_message: string } | account + networkId + message | Signs a message using the specified account |
Type | Value | Description |
---|---|---|
PAYMENT | 0x00 | Payment transaction |
DELEGATION | 0x04 | Delegation transaction |
Network | Value | Description |
---|---|---|
MAINNET | 0x01 | Mina mainnet |
DEVNET | 0x00 | Mina devnet |
Use yarn install
to avoid issues.