check_has_key
Check if an address has a registered viewing key
Overview
Signatures
def check_has_key(
w3: Web3,
address: ChecksumAddress,
) -> bool
async def async_check_has_key(
w3: AsyncWeb3,
address: ChecksumAddress,
) -> bool
def get_key_hash(
w3: Web3,
address: ChecksumAddress,
) -> bytes
async def async_get_key_hash(
w3: AsyncWeb3,
address: ChecksumAddress,
) -> bytesParameters
Parameter
Type
Required
Description
Returns
check_has_key / async_check_has_key
Type
Description
get_key_hash / async_get_key_hash
Type
Description
Examples
Check Has Key (Sync)
Check Before Registering
Get Key Hash (Sync)
Compare Key Hash
Async Usage
Batch Check Multiple Addresses
Monitor Registration
Validate Before Event Watching
Get Key Hash for Event Filtering
How It Works
check_has_key
get_key_hash
Notes
Use Cases
check_has_key
get_key_hash
Warnings
See Also
Last updated

