> ## 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.

# estimateFee

> Estimates fees required for TON query processing using base64-encoded message body data.

### Parameters

<ParamField query="chainId" type="string" default="toncoin-testnet" 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="estimateFee" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={{}} required>
  TON fee estimation request body.

  Parameters for <code>estimateFee</code>:

  <ul>
    <li><code>params.address</code>: TON smart contract address.</li>
    <li><code>params.body</code>: Base64-encoded transaction body.</li>
    <li><code>params.init\_code</code>: Optional base64-encoded initial code.</li>
    <li><code>params.init\_data</code>: Optional base64-encoded initial data.</li>
    <li><code>params.ignore\_chksig</code>: Whether to ignore signature checks.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  TON fee estimate.

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

    <ResponseField name="source_fees" type="object">
      Fees charged at the source account.

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

        <ResponseField name="in_fwd_fee" type="integer" />

        <ResponseField name="storage_fee" type="integer" />

        <ResponseField name="gas_fee" type="integer" />

        <ResponseField name="fwd_fee" type="integer" />
      </Expandable>
    </ResponseField>

    <ResponseField name="destination_fees" type="array">
      Fees charged at destination accounts.

      <Expandable title="items">
        <ResponseField name="items[]" type="object" />
      </Expandable>
    </ResponseField>

    <ResponseField name="@extra" type="string">
      Provider-specific response metadata.
    </ResponseField>
  </Expandable>
</ResponseField>

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

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