starknet.js
The starknet.js WalletAccountV6 API is the direct way to reach the
Starknet Wallet API. Use it when you are working
outside React, or when you need finer control over connection and proof
handling than the React hooks provide.
When to use this
Reach for WalletAccountV6 directly when a React convenience layer does not fit -
for example non-React frontends, scripts, or flows where you manage wallet
connection and proof handling yourself. If you are building a React dapp, the
starknet-start useStrk20 hooks wrap
this same API for you.
How it works
Your app connects to the user's privacy-enabled wallet through starknet.js, then
issues STRK20 actions through the Wallet API. The wallet manages the private
state, ZK proof, and signature wallet-side.
What to keep in mind
- Wallet support is required. The connected wallet must support the STRK20 wallet API methods, since the ZK proofs and signatures are managed wallet-side.
- You own the wiring. Without the hooks, you handle connection and proof handling explicitly.
- Follow the upstream docs. For connecting with get-starknet v6 and the
WalletAccountV6API, see the starknet.js WalletAccount guide.