starknet-start

The useStrk20 hooks from Starknet Start are a convenience wrapper over the Starknet Wallet API. They are the recommended starting point for React dapps.

When to use this

Use the hooks when you are building a React dapp on top of an existing privacy-enabled wallet and want to request STRK20 actions without wiring each wallet call by hand. If you are working outside React, or need finer control over connection and proof handling, use starknet.js WalletAccountV6 directly.

How it works

The hooks call into a WalletAccountV6 (or equivalent) under the hood. Your React components ask for a private action; the connected 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.
  • React only. The hooks are a React convenience layer; non-React apps should use the starknet.js route.
  • Follow the upstream docs. For hook names, parameters, and return values, see the Starknet Start useStrk20 reference.