encodeKey method

  1. @override
String encodeKey(
  1. List<int> hash, {
  2. int? workChain,
  3. bool bounceable = true,
  4. bool urlSafe = true,
})
override

Encodes a public key or address bytes into a blockchain address.

Implementation

@override
String encodeKey(
  List<int> hash, {
  int? workChain,
  bool bounceable = true,
  bool urlSafe = true,
}) {
  workChain = AddrKeyValidator.getAddrArg<int>(workChain, "workChain");
  return TonAddressUtils.encodeAddress(
    hash: hash,
    workChain: workChain,
    bounceable: bounceable,
    urlSafe: urlSafe,
  );
}