starknet_call
call a starknet function without creating a StarkNet transaction
Parameters:
OBJECT - The transaction call object
contract_address -
Address the transaction is sent fromentry_point_selector -
Smart contract entry pointscall_data -
The hash of method signature and encoded parameters.
BLOCK_PARAM - Expected one of block_number
, block_hash
, latest
, pending
Returns:
The function's return value, as defined in the Cairo output
Example:
// Request
curl https://starknet.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json"
--data '{"jsonrpc":"2.0","method":"starknet_call","params": ["", "latest"],"id":1}'
// Result
{
}
Last updated
Was this helpful?