Tech stack
Quick start
Note on dependencies You do not need to install@incentiv/dapp-sdkseparately when using this example. Thepackage.jsonalready references the SDK via"file:..", which points one directory up to the local source. If you publish or move the example outside the monorepo, change that line to"@incentiv/dapp-sdk": "^x.y.z"and re‑install.
Configuration
Network and contract settings live insrc/config.ts:
src/App.tsx by modifying:
App anatomy
1. src/App.tsx
handleConnect– asks the SDK for an account address and sets up the provider & signer.handleFetchData– readsstoredValue()andlastSetter()from the Storage contract.handleSubmit– callssetValue(); the SDK opens the Portal for signing and then shows a success/error modal.- A
useEffecthook listens for new blocks and keeps the UI in sync.