Enumeration AddressType

Enumerates types of addresses used within the Cardano blockchain in the Shelley era and beyond.

Shelley introduces several different types of addresses, each serving distinct purposes and supporting different functionalities. In addition to these new address types, Shelley continues to support Byron-era bootstrap addresses.

Enumeration Members

BasePaymentKeyStakeKey: 0

Base addresses with both payment and stake credentials as key hashes.

Bit pattern:

  • bits 7-6: 00
  • bit 5: stake cred is keyhash
  • bit 4: payment cred is keyhash
  • bits 3-0: network id
BasePaymentKeyStakeScript: 2

Base addresses with payment credentials as key hash and stake credentials as script hash.

Bit pattern:

  • bits 7-6: 00
  • bit 5: stake cred is scripthash
  • bit 4: payment cred is keyhash
  • bits 3-0: network id
BasePaymentScriptStakeKey: 1

Base addresses with payment credentials as script hash and stake credentials as key hash.

Bit pattern:

  • bits 7-6: 00
  • bit 5: stake cred is keyhash
  • bit 4: payment cred is scripthash
  • bits 3-0: network id
BasePaymentScriptStakeScript: 3

Base addresses with both payment and stake credentials as script hashes.

Bit pattern:

  • bits 7-6: 00
  • bit 5: stake cred is scripthash
  • bit 4: payment cred is scripthash
  • bits 3-0: network id
Byron: 8

Byron-era bootstrap addresses, continuing support for backward compatibility.

Bit pattern:

  • bits 7-4: 1000
  • bits 3-0: unrelated data (no network ID in Byron addresses)
EnterpriseKey: 6

Enterprise addresses with payment credential as keyhash.

Bit pattern:

  • bits 7-5: 010
  • bit 4: payment cred is keyhash
  • bits 3-0: network id
EnterpriseScript: 7

Enterprise addresses with payment credential as scripthash.

Bit pattern:

  • bits 7-5: 010
  • bit 4: payment cred is scripthash
  • bits 3-0: network id
PointerKey: 4

Pointer addresses with payment credential as keyhash.

Bit pattern:

  • bits 7-5: 010
  • bit 4: payment cred is keyhash
  • bits 3-0: network id
PointerScript: 5

Pointer addresses with payment credential as scripthash.

Bit pattern:

  • bits 7-5: 010
  • bit 4: payment cred is scripthash
  • bits 3-0: network id
RewardKey: 14

Reward account addresses with credential as keyhash.

Bit pattern:

  • bits 7-5: 111
  • bit 4: credential is keyhash
  • bits 3-0: network id
RewardScript: 15

Reward account addresses with credential as scripthash.

Bit pattern:

  • bits 7-5: 111
  • bit 4: credential is scripthash
  • bits 3-0: network id