Skip to main content

starknet_call RPC Method

Loading...

Updated on
Mar 18, 2024

starknet_call RPC Method

Parameters

request
object
REQUIRED
Loading...
contract_address
string
REQUIRED
Loading...
entry_point_selector
string
REQUIRED
Loading...
calldata
array
REQUIRED
Loading...
block_id
string
REQUIRED
Loading...

Returns

result
array
Loading...
Request
1
# Note: You can specify Starknet version in the URL path
2
# Example: /rpc/v0_8 for version 0.8, /rpc/v0_6 for version 0.6
3
curl --location 'https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_8' \
4
--header 'accept: application/json' \
5
--header 'content-type: application/json' \
6
--data '{
7
"id": 1,
8
"jsonrpc": "2.0",
9
"method": "starknet_call",
10
"params": [
11
{
12
"contract_address": "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",
13
"calldata": [
14
"0xbfc2ea1a458d7cac752a4a688dbb8e0cff399e1b"
15
],
16
"entry_point_selector": "0xb2ef42a25c95687d1a3e7c2584885fd4058d102e05c44f65cf35988451bc8"
17
},
18
"latest"
19
]
20
}'
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free