getExtendedAddressInformation
curl --request GET \
--url https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getExtendedAddressInformationimport requests
url = "https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getExtendedAddressInformation"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getExtendedAddressInformation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getExtendedAddressInformation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getExtendedAddressInformation"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getExtendedAddressInformation")
.asString();require 'uri'
require 'net/http'
url = URI("https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getExtendedAddressInformation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"address": "<string>",
"balance": "<string>",
"state": "<string>",
"last_transaction_id": {
"lt": "<string>",
"hash": "<string>"
},
"block_id": {
"workchain": 123,
"shard": "<string>",
"seqno": 123
},
"code_hash": "<string>",
"data_hash": "<string>",
"acc_type": 123,
"acc_type_name": "<string>"
}TON node API
getExtendedAddressInformation | TON v2
The getExtendedAddressInformation method retrieves extended information about a specific address on the TON blockchain. On TON v2.
GET
/
getExtendedAddressInformation
getExtendedAddressInformation
curl --request GET \
--url https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getExtendedAddressInformationimport requests
url = "https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getExtendedAddressInformation"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getExtendedAddressInformation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getExtendedAddressInformation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getExtendedAddressInformation"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getExtendedAddressInformation")
.asString();require 'uri'
require 'net/http'
url = URI("https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getExtendedAddressInformation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"address": "<string>",
"balance": "<string>",
"state": "<string>",
"last_transaction_id": {
"lt": "<string>",
"hash": "<string>"
},
"block_id": {
"workchain": 123,
"shard": "<string>",
"seqno": 123
},
"code_hash": "<string>",
"data_hash": "<string>",
"acc_type": 123,
"acc_type_name": "<string>"
}The
getExtendedAddressInformation method retrieves extended information about a specific address on the TON blockchain. This method provides more detailed information compared to the basic getAddressInformation method, including the account type, code hash, and data hash.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
TON billing: full (1 RU)This method is always billed as full. See Request units — TON method scope.
Parameters
address(string, required) — The address for which extended information is being requested. Example:EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2.seqno(int, optional) — the Masterchain seqno. You can get the Masterchain seqno with getMasterchainInfo | TON v2.
seqno:
Shell
curl --request GET \
--url 'https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getExtendedAddressInformation?address=EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2&seqno=45792554' \
--header 'accept: application/json'
JSON-RPC example
Shell
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": "getExtendedAddressInformation",
"params": {
"address": "EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2"
}
}'
Response
address(string) — The address in human-readable form.balance(string) — The balance of the address in nanotons.state(string) — The state of the address (active, uninitialized, etc.).last_transaction_id(object) — The last transaction ID, containing:lt(string) — The logical time of the last transaction.hash(string) — The hash of the last transaction.
block_id(object) — The block ID where the address state was last updated, containing:workchain(integer) — The workchain ID.shard(string) — The shard ID.seqno(integer) — The sequence number.
code_hash(string) — The hash of the contract code.data_hash(string) — The hash of the contract data.acc_type(integer) — The account type.acc_type_name(string) — The human-readable account type name.
Use case
A possible use case for thegetExtendedAddressInformation method in TON is for applications that need detailed information about an address, such as wallet applications or blockchain explorers. This method can be used to display comprehensive account information, including the contract details and the latest state of the address.Query Parameters
The address to get extended information for
Response
200 - application/json
Extended information about the specified address
The address in human-readable form
The balance of the address in nanotons
The state of the address (active, uninitialized, etc.)
Show child attributes
Show child attributes
Show child attributes
Show child attributes
The hash of the contract code
The hash of the contract data
The account type
The human-readable account type name
Last modified on June 22, 2026
Was this page helpful?