Address

scalus.cardano.address.Address
See theAddress companion enum
object Address

Attributes

Companion
enum
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Address.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromBech32(bech32: String): Address

Parse address from bech32 string

Parse address from bech32 string

Attributes

Parse address from ByteString

Parse address from ByteString

Value parameters

bs

Raw address bytes

Attributes

Returns

Parsed address

Throws
IllegalArgumentException

If the byte string is empty or does not match any known address format

def fromBytes(bytes: Array[Byte]): Address

Parse address from raw bytes

Parse address from raw bytes

Value parameters

bytes

Raw address bytes including header

Attributes

Returns

Parsed address or failure with descriptive error

def fromString(str: String): Address

Parse address from any string format (bech32, base58, or hex)

Parse address from any string format (bech32, base58, or hex)

Attributes

def shelleyToStake(shelleyAddr: ShelleyAddress): Try[StakeAddress]

Convert Shelley address to Stake address if it has delegation

Convert Shelley address to Stake address if it has delegation

Attributes