Skip to main content

state_call RPC Method

Perform a call to a builtin on the chain

Updated on
Oct 4, 2023

state_call RPC Method

Parameters

method
string
REQUIRED
The name of the built-in function you want to call
Bytes
string
REQUIRED
The input data to be passed to the built-in function as bytes
BlockHash
string
The hash of a specific block in the chain

Returns

result
string
The output of the call to the built-in function
Request
1
curl https://docs-demo.dot-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"state_call","params":["METHOD", "DATA"],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free