> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# getExtendedAddressInformation | TON v2

> The getExtendedAddressInformation method retrieves extended information about a specific address on the TON blockchain. On TON v2.

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.

<Note>
  **TON billing: full (1 RU)**

  This method is always billed as full. See [Request units — TON method scope](/docs/request-units#ton-method-scope).
</Note>

## 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](/reference/ton-getmasterchaininfo-v2).

Example with `seqno`:

```shell Shell theme={"system"}
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 Shell theme={"system"}
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 the `getExtendedAddressInformation` 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.


## OpenAPI

````yaml openapi/ton_node_api/v2/getExtendedAddressInformation.json GET /getExtendedAddressInformation
openapi: 3.0.0
info:
  title: getExtendedAddressInformation example
  version: 1.0.0
  description: >-
    This is an API example for getExtendedAddressInformation, a method to
    retrieve extended information about a specific address on the TON
    blockchain.
servers:
  - url: >-
      https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2
security: []
paths:
  /getExtendedAddressInformation:
    get:
      tags:
        - TON Operations
      summary: getExtendedAddressInformation
      operationId: getExtendedAddressInformation
      parameters:
        - name: address
          in: query
          required: true
          description: The address to get extended information for
          schema:
            type: string
            default: EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2
          example: EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2
      responses:
        '200':
          description: Extended information about the specified address
          content:
            application/json:
              schema:
                type: object
                properties:
                  address:
                    type: string
                    description: The address in human-readable form
                  balance:
                    type: string
                    description: The balance of the address in nanotons
                  state:
                    type: string
                    description: The state of the address (active, uninitialized, etc.)
                  last_transaction_id:
                    type: object
                    properties:
                      lt:
                        type: string
                        description: The logical time of the last transaction
                      hash:
                        type: string
                        description: The hash of the last transaction
                  block_id:
                    type: object
                    properties:
                      workchain:
                        type: integer
                        description: The workchain ID
                      shard:
                        type: string
                        description: The shard ID
                      seqno:
                        type: integer
                        description: The sequence number
                  code_hash:
                    type: string
                    description: The hash of the contract code
                  data_hash:
                    type: string
                    description: The hash of the contract data
                  acc_type:
                    type: integer
                    description: The account type
                  acc_type_name:
                    type: string
                    description: The human-readable account type name

````