Skip to main content

Don't have an RPC Node yet?

Start using RPC Nodes in your project today.

Get your free RPC Node

eth_call

Get Call

POSThttps://site1.moralis-nodes.com/:chain/:apiKey

The eth_call method allows for the execution of a message call to a contract. It can be used to call functions on contracts without sending a transaction. This means it doesn't alter the blockchain and is executed only locally to return a response.

Note

Please refer to RPC schema page for more details on the RPC params and RPC response definitions of the RPC method.

PATH PARAMS
chainstringrequired
The blockchain to interact with.
apiKeystringrequired
Your API key for authentication.
BODY PARAM
Request Bodyobjectrequired
The request payload for the eth_call method.
Responses
200Returns the result of the contract function call.
400Bad Request
404Not Found
429Too Many Requests
500Internal Server Error
curl --request POST \
--url 'https://site1.moralis-nodes.com/eth/YOUR_API_KEY' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_call"
}
'
Response Example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x"
}