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

# starknet_call

> Calls the specified contract function at the specified block, and returns the value of the function, without creating a Starknet transaction. This method does not change the network state.

### Parameters

<ParamField query="chainId" type="string" default="starknet-sepolia" 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="starknet_call" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={{"request":{"contract_address":"0x049E0cCb70e1F1684F43116e9E42e60D0f64d3D254Be8D8A1143dba43dEad733","calldata":["0xbfc2ea1a458d7cac752a4a688dbb8e0cff399e1b"],"entry_point_selector":"0x12ead94ae9d3f9d2bdb6b847cf255f1f398193a1f88884a0ae8e18f24a037b6"},"block_id":{"block_number":470207}}} placeholder="{&#x22;request&#x22;:{&#x22;contract_address&#x22;:&#x22;0x049E0cCb70e1F1684F43116e9E42e60D0f64d3D254Be8D8A1143dba43dEad733&#x22;,&#x22;calldata&#x22;:[&#x22;0xbfc2ea1a458d7cac752a4a688dbb8e0cff399e1b&#x22;],&#x22;entry_point_selector&#x22;:&#x22;0x12ead94ae9d3f9d2bdb6b847cf255f1f398193a1f88884a0ae8e18f24a037b6&#x22;},&#x22;block_id&#x22;:{&#x22;block_number&#x22;:470207}}" required>
  Parameters for starknet\_call: \[contract\_address, entry\_point\_selector, calldata].

  Parameters for <code>starknet\_call</code>:

  <ul>
    <li><code>params.request</code>: Function call object.</li>
    <li><code>params.block\_id</code>: BlockID object containing hash and number.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="array">
  The function return values as an array of strings.

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

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=starknet-sepolia \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "starknet_call",
      "params": {
        "request": {
          "contract_address": "0x049E0cCb70e1F1684F43116e9E42e60D0f64d3D254Be8D8A1143dba43dEad733",
          "calldata": [
            "0xbfc2ea1a458d7cac752a4a688dbb8e0cff399e1b"
          ],
          "entry_point_selector": "0x12ead94ae9d3f9d2bdb6b847cf255f1f398193a1f88884a0ae8e18f24a037b6"
        },
        "block_id": {
          "block_number": 470207
        }
      }
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
      "0x1",
      "0x2",
      "0x3"
    ]
  }
  ```
</ResponseExample>
