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

# eth_call

> Call eth_call on Goldsky Edge RPC to execute a read-only EVM message call against contract state without creating a transaction, at any block or tag.

## Parameters

**transaction** `object` *required*

The transaction call object

**properties**

**from** `string`

Address the transaction is sent from

**to** `string` *required*

Address the transaction is directed to

**gas** `string`

Gas provided for execution (hex)

**gasPrice** `string`

Gas price in wei (hex)

**value** `string`

Value sent in wei (hex)

**data** `string`

Method signature and encoded parameters

**blockNumber** `string` *required*

Block number (hex), or `latest`, `earliest`, `pending`, `safe`, `finalized`

## Returns

**data** `string`

Return value of the executed contract method (hex)

## Example

```bash cURL theme={"dark"}
curl -X POST "https://edge.goldsky.com/standard/evm/1?key=demo" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "data": "0x70a08231000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045"}, "latest"], "id": 1}'
```

```javascript JavaScript theme={"dark"}
const response = await fetch('https://edge.goldsky.com/standard/evm/1?key=demo', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
  "jsonrpc": "2.0",
  "method": "eth_call",
  "params": [
    {
      "to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
      "data": "0x70a08231000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045"
    },
    "latest"
  ],
  "id": 1
})
});
const { result } = await response.json();
console.log(result);
```

```python Python theme={"dark"}
import requests

response = requests.post(
    'https://edge.goldsky.com/standard/evm/1?key=demo',
    json={
  "jsonrpc": "2.0",
  "method": "eth_call",
  "params": [
    {
      "to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
      "data": "0x70a08231000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045"
    },
    "latest"
  ],
  "id": 1
}
)
print(response.json()['result'])
```


## Related topics

- [Use declared eth_calls to increase indexing performance](https://docs.goldsky.com/subgraphs/guides/declared-eth-calls.md)
- [Subgraph performance](https://docs.goldsky.com/subgraphs/guides/performance.md)
- [Testing subgraphs](https://docs.goldsky.com/subgraphs/guides/testing.md)
- [How Boost routes requests](https://docs.goldsky.com/boost/how-it-works.md)
- [Monitoring](https://docs.goldsky.com/edge-rpc/platform/monitoring.md)
