All apps/Starkli

Starkli

starkli

Starkli is a command line tool for interacting with Starknet, powered by starknet-rs.

Runs as starkli|macOS, Linux, Windows|book.starkli.rs

Command form

ai-draft · 2 tasks · 7 fields

Read-only contract calls and chain queries against a Starknet node. Transactions, declarations and account management are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui starkli

starkli call

Call a contract function

Call a contract function without sending a transaction.

Call a contract functionExample values, fixed in this page — nothing here reaches a terminal
Basic
Contract address*
string
Function name*
string
Calldata
string
RPC endpoint
url
Network
string
TasksEach one presets the form for one job
Call
addressselectorcalldatarpcnetwork
ParametersOnly these flags are editable in the form
Contract address
Contract address.
string · positional 0
Function name
Name of the function being called.
string · positional 1
Calldata
Raw function call arguments.
string · positional 2 · repeatable
RPC endpoint
Starknet JSON-RPC endpoint.
url
--rpc
Network
Starknet network.
string
--networkmainnetgoerli-1goerli-2integration
Log traffic
Log raw request/response traffic.
boolean
--log-traffic

starkli block-number

Latest block number

Get the latest block number.

Latest block numberExample values, fixed in this page — nothing here reaches a terminal
Basic
RPC endpoint
url
TasksEach one presets the form for one job
Block number
rpc
ParametersOnly these flags are editable in the form
RPC endpoint
Starknet JSON-RPC endpoint.
url
--rpc
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed starkli against its version. A form that does not match your version is not offered.