ADABaseAddress class

Represents an ADA base address, a subtype of ADAShellyAddress.

Inheritance

Constructors

ADABaseAddress(String address, {ADANetwork? network})
Factory method to create an ADABaseAddress instance from a given address string.
factory
ADABaseAddress.fromCredential({required StakeCred baseCredential, required StakeCred stakeCredential, ADANetwork network = ADANetwork.mainnet})
Factory method to create an ADABaseAddress instance from payment and stake credentials.
factory
ADABaseAddress.fromPublicKey({required List<int> basePubkeyBytes, required List<int> stakePubkeyBytes, ADANetwork network = ADANetwork.mainnet})
Factory method to create an ADABaseAddress instance from base and stake public keys.
factory
ADABaseAddress.shellyWallet({required CardanoShelley shelleyWallet, ADANetwork network = ADANetwork.mainnet})
Factory method to create an ADABaseAddress instance from a Shelley wallet.
factory

Properties

address String
The address string.
final
addressType → ADAAddressType
Abstract property representing the type of ADA address.
no setteroverride
bech32Address String
Returns the Bech32 representation of the address, which is the address itself.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isRewardAddress bool
no setterinherited
network → ADANetwork
The ADA network associated with the address.
final
paymentCredential StakeCred
The payment credential associated with the address.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stakeCredential StakeCred
The stake credential associated with the address.
final

Methods

enterpriseAddress() ADAEnterpriseAddress
Get the enterprise address associated with the base address.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() List<int>
Serializes the object to CBOR bytes.
inherited
serializeHex() String
Serializes the object to hexadecimal string.
inherited
stakeAddress() ADARewardAddress
Get the stake address associated with the base address.
toCbor() → CborObject
Converts the ADAAddress instance to CBOR.
inherited
toJson() String
Converts the ADAAddress instance to JSON.
inherited
toString() String
Returns the string representation of the ADAAddress.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited