eth_call
BNB Smart Chain / https://triport.io/rpc/bsc
Minimum tier: Pro
Last updated:
eth_call executes a read-only EVM message call against BNB Smart Chain state and returns the raw output bytes without creating a transaction.
Use it for contract getters, simulation, and ABI-encoded calls. The result is 0x-prefixed byte data; the caller must decode it with the target contract ABI. The optional block tag selects the state snapshot and defaults to the upstream node's current state when omitted.
Unlike eth_estimateGas, this method returns call output rather than a gas estimate. It never submits a transaction, and raw transaction submission is not exposed for BSC. Historical state is available only on the two confirmed archive-state pool nodes.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| call | Call | Yes | |
| block | BlockTag | No |
Returns
| Field | Type |
|---|---|
| data | Data |
Examples
curl https://triport.io/rpc/bsc \
-X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer <api-key>' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_call","params":["<call>","<block>"]}'const res = await fetch("https://triport.io/rpc/bsc", {
method: "POST",
headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
body: JSON.stringify({
"jsonrpc": "2.0",
"id": 1,
"method": "eth_call",
"params": [
"<call>",
"<block>"
]
}),
});
const data = await res.json();import requests
resp = requests.post(
"https://triport.io/rpc/bsc",
headers={"Authorization": "Bearer <api-key>"},
json={"jsonrpc":"2.0","id":1,"method":"eth_call","params":["<call>","<block>"]},
)
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Chain: BNB Smart Chain.
- Clusters: mainnet.
- Credit cost: 5 per call.
FAQ
- What does eth_call do?
- Execute a read-only EVM call.
- How many credits does eth_call cost?
- eth_call costs 5 credit(s) per call on Triport by default.
- Is eth_call available over WebSocket?
- eth_call is an HTTP JSON-RPC method.