Alchemy Logo

starknet_call

POST
/{apiKey}

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

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

requestobjectrequired

The details of the function call

block_idobject or enumrequired

The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.

Block hash, number or tag

Responses

200

The function's return value

Was this page helpful?