UnifiedFullViewingKey
Index
Constructors
Methods
Constructors
constructor
Construct a UFVK from its encoded string representation
Arguments
network- Must be either "main" or "test"encoding- The encoded string representation of the UFVK
Parameters
network: string
encoding: string
Returns UnifiedFullViewingKey
Methods
encode
Encode the UFVK to a string
Arguments
network- Must be either "main" or "test"
Parameters
network: string
Returns string
free
Returns void
get_transparent_address
Get the default transparent address derived from this UFVK.
This can be used before creating an account to detect the wallet birthday by querying for transactions to this address.
Arguments
network- Must be either "main" or "test"
Returns
The transparent address as a string, or None if this UFVK has no transparent component.
Parameters
network: string
Returns string
A Zcash viewing key
This is a wrapper around the
zcash_keys::keys::ViewingKeytype. UFVKs should be generated from a spending key by callingto_unified_full_viewing_keyThey can also be encoded and decoded to a canonical string representation