Variable: getLedgerPathBuffer
constgetLedgerPathBuffer: (accountId,applicationName?) =>Uint8Array=getLedgerPathBuffer111
Defined in: ledger/ledgerSigner111.ts:66
Format the Ledger wallet path to an Uint8Array for a Ledger Starknet APP v1.1.1.
EIP2645 path = 2645'/starknet/application/0/accountId/0
Parameters
accountId
number
Id of account. < 2**31.
applicationName?
string
utf8 string of application name.
Returns
Uint8Array
an Uint8array of 24 bytes.
Example
import { getLedgerPathBuffer111 } from 'starknet/ledger';
const result = getLedgerPathBuffer111(0);
// result = Uint8Array(24) [
128, 0, 10, 85, 71, 65, 233, 201,
43, 206, 231, 219, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0
]
Deprecated
Use getLedgerPathBuffer111 instead. getLedgerPathBuffer is an alias of it,
kept only for backward compatibility, and will be removed in a future major version. The two are
the same function, so the migration is a rename: no behavior changes.