SolAddress.fromPublicKey constructor

SolAddress.fromPublicKey(
  1. List<int> pubKeyBytes
)

Constructs a Solana address from a public key.

Implementation

factory SolAddress.fromPublicKey(List<int> pubKeyBytes) {
  final address = SolAddrEncoder().encodeKey(pubKeyBytes);
  return SolAddress._(address);
}