For the complete documentation index, see llms.txt. This page is also available as Markdown.

packaddress - TON

Example code for the packaddress JSON-RPC method. Сomplete guide on how to use packaddress JSON-RPC in GetBlock.io Web3 documentation.

This method packs a raw workchain:hex address into the user-friendly base64 form. Equivalent to a one-shot conversion utility.

Parameters

Parameter
Type
Required
Description

address

string

Yes

Address in raw form (workchain:hex)

Request Example

REST (GET):

curl --location --request GET 'https://go.getblock.io/<ACCESS-TOKEN>/packAddress?address=0:ed16913070500471175e992b561d8de82d31fbf84910ced6eb5fc92e74485ef8a' \
--header 'Content-Type: application/json'

JSON-RPC (POST):

curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "packAddress",
    "params": {
        "address": "0:ed16913070500471175e992b561d8de82d31fbf84910ced6eb5fc92e74485ef8a"
    },
    "id": "getblock.io"
}'

Response Example

Response Parameters

Field
Type
Description

result

string

Packed user-friendly address (EQ… URL-safe base64)

Use Cases

  • Converting raw addresses from indexers into user-displayable form

  • Format normalisation in dApp UIs

Error Handling

Status Code
Error Message
Cause

403

Forbidden

Missing or invalid <ACCESS-TOKEN>

422

Validation Error

Request parameters are missing or malformed

429

Too Many Requests

Rate limit exceeded for your plan

504

Lite Server Timeout

Upstream TON liteserver timed out

SDK Integration

Last updated

Was this helpful?