encodeKey method

  1. @override
String encodeKey(
  1. List<int> hash, {
  2. int? workChain,
  3. bool bounceable = true,
  4. bool urlSafe = true,
  5. bool noPadding = false,
  6. bool testOnly = false,
})
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,
  bool noPadding = false,
  bool testOnly = false,
}) {
  workChain = AddrKeyValidator.getAddrArg<int>(workChain, "workChain");
  return TonAddressUtils.encodeAddress(
    hash: hash,
    workChain: workChain,
    bounceable: bounceable,
    urlSafe: urlSafe,
    noPadding: noPadding,
    testOnly: testOnly,
  );
}