Starknet tooling
Chainstack runs the Pathfinder Starknet client.
Pathfinder currently supports querying the Starknet network for state.
For the full list of available queries, see Pathfinder API.
JSON-RPC API
where
- METHOD — a supported JSON-RPC API method
- PARAMS — request parameters if any
- YOUR_CHAINSTACK_ENDPOINT — your node HTTPS endpoint protected either with the key or password
Starknet.js
Install Starknet.js. See Starknet.js guide.
Use RpcProvider
to connect to your Starknet node and get the latest block:
where YOUR_CHAINSTACK_ENDPOINT is your node HTTPS endpoint protected either with the key or password. See also node access details.
Starknet.py
Install Starknet.py. See Starknet.py guide.
Use FullNodeClient
to connect to your Starknet node and retrieve a transaction by hash:
where YOUR_CHAINSTACK_ENDPOINT is your node HTTPS endpoint protected either with the key or password. See also node access details.
Starkli
Rust-based CLI tool to interact with the Starknet blockchain.
Install Starkli. See Starkli Book.
In a terminal run commands with the --rpc
flag:
where YOUR_CHAINSTACK_ENDPOINT is your node HTTPS endpoint protected either with the key or password. See also node access details.
Find more JSON-RPC methods on the Starkli documentation.