Attributes
Members list
Type members
Classlikes
CBOR decoder for Address
CBOR decoder for Address
Attributes
- Supertypes
- Self type
CBOR encoder for Address
CBOR encoder for Address
Attributes
- Supertypes
- Self type
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Create a Shelley address from payment and stake credentials
Create a Shelley address from payment and stake credentials
Attributes
Create a Shelley-era address from a payment credential with no delegation
Create a Shelley-era address from a payment credential with no delegation
This is an enterprise address.
Attributes
Parse address from bech32 string
Parse address from bech32 string
Attributes
Parse address from scalus.builtin.ByteString
Parse address from scalus.builtin.ByteString
Value parameters
- bs
-
Raw address bytes
Attributes
- Returns
-
Parsed address
- Throws
-
java.lang.IllegalArgumentException
If the byte string is empty or does not match any known address format
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
Parse address from any string format (bech32 or base58).
Parse address from any string format (bech32 or base58).
Tries Bech32 first (for Shelley-era addresses), then Base58 (for Byron addresses).
Value parameters
- str
-
The address string to parse
Attributes
- Returns
-
The parsed Address
- Throws
-
IllegalArgumentException
if the string is not a valid address in any supported format
Givens
Givens
CBOR decoder for Address
CBOR decoder for Address
Attributes
CBOR encoder for Address
CBOR encoder for Address
Attributes
Pretty prints any Address - delegates to specific type instances
Pretty prints any Address - delegates to specific type instances
Attributes
Extensions
Extensions
String interpolator for parsing bech32 Cardano addresses.
String interpolator for parsing bech32 Cardano addresses.
Attributes
- Example
-
import scalus.cardano.address.Address.addr val mainnetAddr = addr"addr1qx2fxv2umyhttkxyxp8x0dlpdt3k6cwng5pxj3jhsydzer..." val testnetAddr = addr"addr_test1qz2fxv2umyhttkxyxp8x0dlpdt3k6cwng5pxj3jhsydzer..." val stakeAddr = addr"stake1uyehkck0lajq8gr28t9uxnuvgcqrc6070x3k9r8048z8y5gh6ffgw"
String interpolator for parsing bech32 Cardano stake addresses.
String interpolator for parsing bech32 Cardano stake addresses.
Attributes
- Example
-
import scalus.cardano.address.Address.stake val mainnetStake = stake"stake1uyehkck0lajq8gr28t9uxnuvgcqrc6070x3k9r8048z8y5gh6ffgw" val testnetStake = stake"stake_test1uqfu74w3wh4gfzu8m6e7j987h4lq9r3t7ef5gaw497uu85qsqfy27"