> For the complete documentation index, see [llms.txt](https://sodex.com/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sodex.com/documentation/for-developers/api-reference/json-rpc/eth-call.md).

# eth\_call

POST `https://mainnet.valuechain.xyz`

Executes a call without creating a transaction on the chain.

The example calls `name()` on WSOSO and returns `Wrapped SOSO`.

## Parameters

| Name          | Type                     | Required | Description                                                                                                                                                                                                                                                |
| ------------- | ------------------------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `transaction` | object                   | Yes      | Call object: `to`, optional `from`, `data`, `value`, and gas fields.                                                                                                                                                                                       |
| `block`       | quantity, tag, or object | No       | Hex block number, tag (`earliest`, `latest`, `safe`, `finalized`, `pending`), or block identifier object. Defaults to `latest`. See [block tags](/documentation/for-developers/developers/valuechain-evm/differences-from-ethereum.md#consensus-finality). |

## Result

**Return data** (data): ABI-encoded return data from the call.

## Example

### Response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000c5772617070656420534f534f0000000000000000000000000000000000000000"
}
```

## Code examples

### cURL

```bash
curl --request POST \
  --url https://mainnet.valuechain.xyz \
  --header 'Content-Type: application/json' \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "eth_call", "params": [{"to": "0x5050505050505050505050505050505050505050", "data": "0x06fdde03"}, "latest"]}'
```

### JavaScript

```javascript
const options = {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({"jsonrpc": "2.0", "id": 1, "method": "eth_call", "params": [{"to": "0x5050505050505050505050505050505050505050", "data": "0x06fdde03"}, "latest"]})
};

fetch('https://mainnet.valuechain.xyz', options)
  .then((res) => res.json())
  .then((res) => console.log(res))
  .catch((err) => console.error(err));
```

### Python

```python
import requests

url = "https://mainnet.valuechain.xyz"
payload = {
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_call",
  "params": [
    {
      "to": "0x5050505050505050505050505050505050505050",
      "data": "0x06fdde03"
    },
    "latest"
  ]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
```
