Address Type¶
-
enum cardano_address_type_t¶
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.
Values:
-
enumerator CARDANO_ADDRESS_TYPE_BASE_PAYMENT_KEY_STAKE_KEY¶
Base addresses with both payment and stake credentials as key hashes.
bits 7-6 : 00
bit 5 : stake cred is keyhash
bit 4 : payment cred is keyhash
bits 3-0 : network id
-
enumerator CARDANO_ADDRESS_TYPE_BASE_PAYMENT_SCRIPT_STAKE_KEY¶
Base addresses with payment credentials as script hash and stake credentials as key hash.
bits 7-6 : 00
bit 5 : stake cred is keyhash
bit 4 : payment cred is scripthash
bits 3-0 : network id
-
enumerator CARDANO_ADDRESS_TYPE_BASE_PAYMENT_KEY_STAKE_SCRIPT¶
Base addresses with payment credentials as key hash and stake credentials as script hash.
bits 7-6 : 00
bit 5 : stake cred is scripthash
bit 4 : payment cred is keyhash
bits 3-0 : network id
-
enumerator CARDANO_ADDRESS_TYPE_BASE_PAYMENT_SCRIPT_STAKE_SCRIPT¶
Base addresses with both payment and stake credentials as script hashes.
bits 7-6 : 00
bit 5 : stake cred is scripthash
bit 4 : payment cred is scripthash
bits 3-0 : network id
-
enumerator CARDANO_ADDRESS_TYPE_POINTER_KEY¶
Pointer addresses with payment credential as keyhash.
bits 7-5 : 010
bit 4 : payment cred is keyhash
bits 3-0 : network id
-
enumerator CARDANO_ADDRESS_TYPE_POINTER_SCRIPT¶
Pointer addresses with payment credential as scripthash.
bits 7-5 : 010
bit 4 : payment cred is scripthash
bits 3-0 : network id
-
enumerator CARDANO_ADDRESS_TYPE_ENTERPRISE_KEY¶
Enterprise addresses with payment credential as keyhash.
bits 7-5 : 010
bit 4 : payment cred is keyhash
bits 3-0 : network id
-
enumerator CARDANO_ADDRESS_TYPE_ENTERPRISE_SCRIPT¶
Enterprise addresses with payment credential as scripthash.
bits 7-5 : 010
bit 4 : payment cred is scripthash
bits 3-0 : network id
-
enumerator CARDANO_ADDRESS_TYPE_BYRON¶
Byron-era bootstrap addresses, continuing support for backward compatibility.
bits 7-4 : 1000
bits 3-0 : unrelated data (no network ID in Byron addresses)
-
enumerator CARDANO_ADDRESS_TYPE_REWARD_KEY¶
Reward account addresses with credential as keyhash.
bits 7-5 : 111
bit 4 : credential is keyhash
bits 3-0 : network id
-
enumerator CARDANO_ADDRESS_TYPE_REWARD_SCRIPT¶
Reward account addresses with credential as scripthash.
bits 7-5 : 111
bit 4 : credential is scripthash
bits 3-0 : network id
-
enumerator CARDANO_ADDRESS_TYPE_BASE_PAYMENT_KEY_STAKE_KEY¶