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

# detectAddress

> Retrieves all canonical forms of a TON address.

### Parameters

<ParamField query="chainId" type="string" default="toncoin" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="detectAddress" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={{"address":"EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2"}} placeholder="{&#x22;address&#x22;:&#x22;EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2&#x22;}" required>
  TON address detection request.

  Parameters for <code>detectAddress</code>:

  <ul>
    <li><code>params.address</code>: TON account address.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  Detected TON address forms.

  <Expandable title="properties">
    <ResponseField name="raw_form" type="string">
      Raw TON address form.
    </ResponseField>

    <ResponseField name="bounceable" type="object">
      Bounceable address forms.

      <Expandable title="properties">
        <ResponseField name="b64" type="string" />

        <ResponseField name="b64url" type="string" />
      </Expandable>
    </ResponseField>

    <ResponseField name="non_bounceable" type="object">
      Non-bounceable address forms.

      <Expandable title="properties">
        <ResponseField name="b64" type="string" />

        <ResponseField name="b64url" type="string" />
      </Expandable>
    </ResponseField>

    <ResponseField name="given_type" type="string">
      Detected type of the input address.
    </ResponseField>

    <ResponseField name="test_only" type="boolean">
      Whether the address is testnet-only.
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=toncoin \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "detectAddress",
      "params": {
        "address": "EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2"
      }
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {}
  }
  ```
</ResponseExample>
