Skip to main content

state_call RPC method

Perform a call to a builtin on the chain.

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 list of RPC methods exposed by the node

Code Examples

curl https://api-polkadot.dwellir.com/<API-KEY> \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"state_call","params":["METHOD", "DATA"],"id":1,"jsonrpc":"2.0"}'