How to use the @keepkey/device-protocol/lib/messages-cosmos_pb.CosmosGetAddress function in @keepkey/device-protocol

To help you get started, we’ve selected a few @keepkey/device-protocol examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shapeshift / hdwallet / packages / hdwallet-keepkey / src / cosmos.ts View on Github external
export async function cosmosGetAddress (transport: KeepKeyTransport, msg: Core.CosmosGetAddress): Promise<string> {
  const getAddr = new CosmosGetAddress()
  getAddr.setShowDisplay(msg.showDisplay !== false)
  const response = await, getAddr, Core.LONG_TIMEOUT)

  if (response.message_type === Core.Events.FAILURE) throw response

  const cosmosAddress = response.proto as CosmosAddress
  return cosmosAddress.getAddress()


The proto buffer files from the KeepKey device, packed for consumption by the client.

Latest version published 3 months ago

Package Health Score

60 / 100
Full package analysis

Similar packages