import requests
url = "https://api.example.com/api/v1/metadata/eth-call"
payload = {
"chain_id": "<string>",
"to": "<string>",
"data": "<string>",
"from": "<string>",
"block": "latest"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)curl --request POST \
--url https://api.example.com/api/v1/metadata/eth-call \
--header 'Content-Type: application/json' \
--data '
{
"chain_id": "<string>",
"to": "<string>",
"data": "<string>",
"from": "<string>",
"block": "latest"
}
'{
"result": {
"result": "<string>"
},
"success": true,
"suggestion": "",
"message": "",
"meta": {
"total": 123,
"offset": 123,
"limit": 123,
"has_more": true,
"after": "<string>",
"before": "<string>"
}
}{
"success": false,
"error": {
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}
}Call a view/pure function on an EVM contract
Proxies an eth_call JSON-RPC request to the configured EVM node for the given chain. Suitable for calling view or pure contract functions without creating a transaction. Returns the raw hex result.
import requests
url = "https://api.example.com/api/v1/metadata/eth-call"
payload = {
"chain_id": "<string>",
"to": "<string>",
"data": "<string>",
"from": "<string>",
"block": "latest"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)curl --request POST \
--url https://api.example.com/api/v1/metadata/eth-call \
--header 'Content-Type: application/json' \
--data '
{
"chain_id": "<string>",
"to": "<string>",
"data": "<string>",
"from": "<string>",
"block": "latest"
}
'{
"result": {
"result": "<string>"
},
"success": true,
"suggestion": "",
"message": "",
"meta": {
"total": 123,
"offset": 123,
"limit": 123,
"has_more": true,
"after": "<string>",
"before": "<string>"
}
}{
"success": false,
"error": {
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}
}Headers
Body
Request body for the eth_call proxy endpoint.
Cobo chain ID (e.g. SETH, BASE_ETH).
1 - 100Contract address to call.
1 - 255ABI-encoded calldata as a hex string (with or without 0x prefix).
1Optional msg.sender override.
Block tag or hex block number (default: latest).
Response
Successful Response
Result of an eth_call proxy request.
Show child attributes
Show child attributes
Pagination metadata for list responses.
Supports both legacy offset-based and cursor-based pagination.
Cursor fields (has_more, after, before) are populated for
cursor-paginated endpoints. Legacy fields (offset, limit) are
populated when the caller uses the deprecated offset parameter.
Show child attributes
Show child attributes