address property

  1. @override
String get address
override

Get the Substrate address encoded in SS58 format.

This method uses the SS58 package to encode the public key with a default prefix of 42.

Example:

final keyPair = KeyPair.sr25519.fromSeed(seed); // Replace with your actual seed
print('Substrate Address: ${keyPair.address}');

Implementation

@override
String get address {
  return Address(prefix: ss58Format, pubkey: _addressPrivate()).encode();
}