Helpers for encoding and decoding TON blockchain addresses.
<decimal workchain_id>:<64 hexadecimal digits with account_id>
. Example: -1:fcb91a3a3816d0f7b8c2c76108b8a9bc5a6b7a55bd79f8ab101c52db29232260
.ton_address_raw_to_user_friendly(varchar, boolean)
→ varchar
Converts a raw address to its user-friendly equivalent. The second argument is a boolean flag that specifies whether the bounceable flag is enabled (true) or disabled (false). If omitted, the bounceable flag defaults to true.
ton_address_user_friendly_to_raw(varchar)
→ varchar
Converts a user-friendly address back to its raw representation.