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

# runGetMethod

> Runs a get method on a TON smart contract without changing state.

### 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="runGetMethod" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={{}} required>
  TON smart contract get-method request body.

  Parameters for <code>runGetMethod</code>:

  <ul>
    <li><code>params.address</code>: TON smart contract address.</li>
    <li><code>params.method</code>: Get method name to execute.</li>
    <li><code>params.stack</code>: TVM stack arguments.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  TON smart contract get-method execution result.

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

    <ResponseField name="gas_used" type="integer">
      Gas consumed by the get method execution.
    </ResponseField>

    <ResponseField name="stack" type="array">
      TVM stack returned by the get method.

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

    <ResponseField name="exit_code" type="integer">
      TVM exit code.
    </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 \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "runGetMethod",
      "params": {}
    }'
  ```
</RequestExample>

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