curl --request GET \
--url https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/unpackAddress
{
"address": "<string>"
}
curl --request GET \
--url https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/unpackAddress
{
"address": "<string>"
}
unpackAddress
method converts a user-friendly TON address to its raw format. This method is useful for converting human-readable addresses into the format required for certain low-level operations or for consistency in data storage.
curl -X POST \
'https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/jsonRPC' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "unpackAddress",
"params": {
"address": "EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2"
}
}'
address
(string, required) — The user-friendly address to unpack. Example: EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2
.address
(string) — The unpacked address in raw format. This format typically includes the workchain ID and the raw address without any encoding or checksum.unpackAddress
method in TON is for developers building applications that need to interact with the TON blockchain at a lower level. This method can be used to:
The user-friendly address to unpack
The unpacked (raw) address
The response is of type object
.
Was this page helpful?