get_viewing_key
Fetch your viewing key from the Directory contract
Overview
Signature
def get_viewing_key(
w3: Web3,
encryption: EncryptionState,
private_key: PrivateKey,
) -> Bytes32
async def async_get_viewing_key(
w3: AsyncWeb3,
encryption: EncryptionState,
private_key: PrivateKey,
) -> Bytes32Parameters
Parameter
Type
Required
Description
Returns
Type
Description
Raises
Examples
Basic Usage (Sync)
With Error Handling
Use with Event Watcher
Async Usage
Cache the Key
Compare with Stored Key
Export for Sharing
How It Works
Notes
Warnings
See Also
Last updated

