Address

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

Attributes

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

Members list

Type members

Classlikes

object given_Decoder_Address extends Decoder[Address]

CBOR decoder for Address

CBOR decoder for Address

Attributes

Supertypes
trait Decoder[Address]
class Object
trait Matchable
class Any
Self type
object given_Encoder_Address extends Encoder[Address]

CBOR encoder for Address

CBOR encoder for Address

Attributes

Supertypes
trait Encoder[Address]
class Object
trait Matchable
class Any
Self type

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

Givens

Givens

CBOR decoder for Address

CBOR decoder for Address

Attributes

CBOR encoder for Address

CBOR encoder for Address

Attributes