Variable default

default: { getAddress: ((ledgerParams: LedgerGetAddress) => Promise<{ address: string; publicKey: string }>); getVersion: ((transport: any) => Promise<LedgerGetVersion>); signOperation: ((ledgerParams: LedgerSignOperation) => Promise<string>) }

Type declaration

  • getAddress: ((ledgerParams: LedgerGetAddress) => Promise<{ address: string; publicKey: string }>)
      • (ledgerParams: LedgerGetAddress): Promise<{ address: string; publicKey: string }>
      • Description

        Get the public key and public key hash from the ledger

        Returns

        The public key and public key hash

        Example

        ledger.getAddress({
        transport: LedgerTransport,
        path = "44'/1729'/0'/0'",
        displayConfirm = true,
        curve = 'tz1',
        }).then(({ address, publicKey }) => console.log(address, publicKey));

        Parameters

        Returns Promise<{ address: string; publicKey: string }>

  • getVersion: ((transport: any) => Promise<LedgerGetVersion>)
      • (transport: any): Promise<LedgerGetVersion>
      • Description

        Show the version of the ledger

        Returns

        The version info

        Example

        ledger.getVersion()
        .then(({ major, minor, patch, bakingApp }) => console.log(major, minor, patch, bakingApp));

        Parameters

        • transport: any

          The transport

        Returns Promise<LedgerGetVersion>

  • signOperation: ((ledgerParams: LedgerSignOperation) => Promise<string>)
      • (ledgerParams: LedgerSignOperation): Promise<string>
      • Description

        Sign an operation with the ledger

        Returns

        The signed operation

        Example

        ledger.signOperation({
        path = "44'/1729'/0'/0'",
        rawTxHex,
        curve = 'tz1',
        }).then((signature) => console.log(signature));

        Parameters

        Returns Promise<string>

Generated using TypeDoc