Skip to main content
Version: 19.1.0


The InMemoryViewingKey class can be instantiated from a viewing or spending key.

Instantiation from a viewing key:

import { InMemoryViewingKey } from '@mavrykdynamics/taquito-sapling';
const inMemoryViewingKey = new InMemoryViewingKey(

Instantiation from an unencrypted spending key:

Live Editor

Instantiation from an encrypted spending key:

Live Editor

How to retrieve payment addresses from the viewing key

The InMemoryViewingKey class has a method named getAddress, allowing to derive addresses (zet) from the viewing key. An index can be specified as a parameter, or the default value 0 will be used.

Live Editor

Provide detailed feedback