# eth_call - Etherlink RPC Method

Executes a new message call immediately without creating a transaction on Etherlink. Used for reading smart contract state.

## When to Use This Method

Read getPriceUnsafe(bytes32) on the Pyth proxy at block 4,162,675. This historical example skips freshness checks and is not a current trading price.

## Best Practices

Keep the recorded block height and address together when reproducing a historical example. Preserve RPC errors instead of replacing them with empty results.

## Request Parameters

- `call` (`Object, required`): Call object with to and data for the historical Pyth getPriceUnsafe example.
- `blockNumber` (`QUANTITY, required`): Block number in hexadecimal. The example uses the recorded historical height.

## Request Example

```json
{
  "jsonrpc": "2.0",
  "id": 8,
  "method": "eth_call",
  "params": [
    {
      "to": "0x2880ab155794e7179c9ee2e38200202908c17b43",
      "data": "0x96834ad3e62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43"
    },
    "0x3f8473"
  ]
}
```

## Response Fields

This method returns no documented fields.

## Successful Response

```json
{
  "jsonrpc": "2.0",
  "result": "0x000000000000000000000000000000000000000000000000000006ce3a4ea33600000000000000000000000000000000000000000000000000000000b7e490b1fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff800000000000000000000000000000000000000000000000000000000672c90e9",
  "id": 8
}
```

## Code Examples

```bash
curl -X POST "https://api-etherlink-mainnet.n.dwellir.com/YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '{"jsonrpc":"2.0","id":8,"method":"eth_call","params":[{"to":"0x2880ab155794e7179c9ee2e38200202908c17b43","data":"0x96834ad3e62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43"},"0x3f8473"]}'
```
