Docs
Docs
Home
Getting Started
Agent Tooling
CLI
Supported Chains
Acala
Aptos
Arbitrum
Arc
Asset Hub
Astar
Avalanche
Base
Berachain
Bifrost
Binance Smart Chain
Bittensor
Blast
Boba Network
Bridge Hub
Celo
Centrifuge
Chiliz
Cronos
Enjin
Ethereum
Etherlink
Flow EVM Gateway
Gnosis
Hydration
Hyperliquid
Immutable
Ink
IoTeX
Kusama
Linea
LISK
Manta Atlantic
Manta Pacific
Mantle
MegaETH
Monad
Movement
Neuroweb
opBNB
Optimism
Plasma
Polkadot
Polygon
Pulsechain
Robinhood
Ronin
Scroll
Sonic
Starknet
Taiko
Tempo
Sui
TRON
Unichain
Viction
World Chain
XDC Network
XX Network
Zetachain
zkSync Era
Zora
Supported ChainsStarknetJSON-RPC API

starknet_call - Execute Cairo Contract Calls

Execute Cairo smart contract functions without creating a transaction on Starknet.

Starknet RPC endpoint: endpoint URLs, plans and pricing.

Executes a function call on a Cairo smart contract without creating a transaction on the blockchain.

JSON-RPC request
{
  "jsonrpc": "2.0",
  "method": "starknet_call",
  "params": [
    {
      "contract_address": "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",
      "entry_point_selector": "0x2e4263afad30923c891518314c3c95dbe830a16874e8abc5777a9a20b54c76e",
      "calldata": ["0x1234567890abcdef1234567890abcdef12345678"]
    },
    "latest"
  ],
  "id": 1
}

Examples

starknet_blockNumber - Get the most recent...

Get the most recent accepted block number

starknet_chainId - Get Starknet Chain ID

Returns the currently configured Starknet chain ID as a felt252 hex value. Used for network identification, transaction signing, and multi-chain routing.

On this page

Examples