Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Important: If you're encountering any problem declaring contracts, please read the Blake Hash Support information.

ledger get-public-key

Read the public key at a given EIP-2645 derivation path from the connected Ledger device.

One of --path or --account-id is required.

--path <HD_PATH>

EIP-2645 derivation path (e.g., m//starknet'/sncast'/0'/1'/0).

Conflicts with: --account-id

--account-id <ACCOUNT_ID>

Shorthand for --path. The account ID is used to derive the path m//starknet'/sncast'/0'/<account-id>'/0.

Conflicts with: --path

--no-display

Optional.

If passed, the public key will not be shown on the Ledger screen for confirmation. By default, confirmation is requested on the device.

Example

$ sncast ledger get-public-key --path "m//starknet'/sncast'/0'/1'/0"
$ sncast ledger get-public-key --account-id 1
Output:
Public Key: 0x[..]