getCredentialsByContract

Retrieves all credentials associated with a specific contract.

Returns credentials where the contractId matches the provided contract address. Useful for finding all credentials (including failed deployments) for a wallet.

Return

List of credentials for this contract (empty if none found)

Parameters

contractId

The contract address to filter by

Throws

if reading fails

Example:

val credentials = manager.getCredentialsByContract(contractId = "CBCD1234...")
println("Found ${credentials.size} credential(s) for this contract")