Skip to main content

starknet_call RPC Method

Calls a function in a contract and returns the return value. Using this call will not create a transaction; hence, will not change the state.

Updated on
Mar 18, 2024

Parameters

request
object
REQUIRED

The details of the function call which contains the following fields:

contract_address
string
REQUIRED

The address of the contract

entry_point_selector
string
REQUIRED

The entry point selector

calldata
array
REQUIRED

The parameters passed to the constructor

block_id
string
REQUIRED

The hash of the requested block, the block number (height) of the requested block, or a block tag (latest, pre_confirmed, or l1_accepted)

Returns

result
array

The function's return value, as defined in the Cairo output

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free