Type Alias Credential

Credential: { hash: string; type: CredentialType }

Represents a credential used in Cardano addresses.

A credential is a fundamental component of Cardano addresses that determines who has control over the funds. It can be either a key hash (representing a public key) or a script hash (representing a smart contract).

The credential is used in various address types to specify who can:

  • Spend funds from the address (payment credential)
  • Receive staking rewards (stake credential)
  • Participate in governance (voting credential)

Type declaration

  • hash: string

    The hash of the credential (either key hash or script hash) as a hex string.

  • type: CredentialType

    The type of credential (key hash or script hash).