Start a new dapp
Getting Started with Typink
Create a New Project
pnpm create typink@latestyarn create typink@latestbunx create typink@latestnpm create typink@latestnpx create-typink@latest1. Enter Project Name
? Project name: my-typink-dapp2. Select Contract Type
? Select contract type:
β― Ink! v6 (PolkaVM, pallet-revive)
Ink! v6 using Sol ABI (PolkaVM, pallet-revive)
Solidity (PolkaVM, pallet-revive)
Ink! v5 (WASM, pallet-contracts)3. Select Networks
Start Development
Project Structure
Key Files
Explore the Example
Example Contracts
Add Your Own Contracts
1. Deploy Your Contract
2. Generate TypeScript Bindings
3. Register Contract Deployment
Unified Hooks - Works with All Contract Types
useContract - Initialize Contract Instance
useContractQuery - Query Contract State
useContractTx - Send Transactions
useWatchContractEvent - Listen to Events
useDeployerTx - Deploy New Contracts
Setup Transaction Toaster
Complete Example
Last updated