ShelleyAddress
export interface ShelleyAddress<SC extends SpendingCredential = SpendingCredential> {
bech32Prefix: "addr" | "addr_test"
bytes: number[]
copy(): ShelleyAddress<SC>
dump(): any
era: "Shelley"
isEqual(other: Address): boolean
kind: "Address"
mainnet: boolean
spendingCredential: SC
stakingCredential: undefined | StakingCredential
toBech32(): string
toCbor(): number[]
toHex(): string
toString(): string
toUplcData(): UplcData
}
Wrapper for Cardano (post-Byron) address bytes. A ShelleyAddress
consists of three parts internally:
- Header (1 byte, see CIP 19)
- Witness hash (28 bytes that represent the
PubKeyHash
orValidatorHash
) - Optional staking credential (0 or 28 bytes)
Properties
bech32Prefix
bech32Prefix: "addr" | "addr_test"
bytes
bytes: number[]
copy
copy(): ShelleyAddress<SC>
dump
dump(): any
era
era: "Shelley"
isEqual
isEqual(other: Address): boolean
kind
kind: "Address"
mainnet
mainnet: boolean
spendingCredential
spendingCredential: SC
stakingCredential
stakingCredential: undefined | StakingCredential
toBech32
toBech32(): string
toCbor
toCbor(): number[]
toHex
toHex(): string
toString
toString(): string
toUplcData
toUplcData(): UplcData