Helpers for encoding and decoding TON blockchain addresses.
Smart contract addresses on the TON blockchain are composed of two key components:
There are two different representation of contract addresses on TON blockchain:
<decimal workchain_id>:<64 hexadecimal digits with account_id>
. Example: -1:fcb91a3a3816d0f7b8c2c76108b8a9bc5a6b7a55bd79f8ab101c52db29232260
.We provide functions to translate between the two formats.
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.
Helpers for encoding and decoding TON blockchain addresses.
Smart contract addresses on the TON blockchain are composed of two key components:
There are two different representation of contract addresses on TON blockchain:
<decimal workchain_id>:<64 hexadecimal digits with account_id>
. Example: -1:fcb91a3a3816d0f7b8c2c76108b8a9bc5a6b7a55bd79f8ab101c52db29232260
.We provide functions to translate between the two formats.
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.