encodeKey method
String
encodeKey(
- List<
int> hash, { - int? workChain,
- bool bounceable = true,
- bool urlSafe = true,
- bool noPadding = false,
- 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,
);
}