dapp-starter-svelte Svelte Themes

Dapp Starter Svelte

A starter template built with svelte to demonstrate dapp interaction with xian wallet

Please don't use the xian-dapp-utils.mjs included here but the newest one from the dapp-utils repository.

Xian Counter dApp

This is a simple decentralized application (dApp) that interacts with the Xian blockchain. It uses the Xian Wallet browser extension to send transactions and interact with smart contracts.

Features

  • Display the current wallet address
  • Send a transaction to increment a counter on the blockchain
  • Display transaction success or failure using toast notifications

Setup

  1. Install the Xian Wallet browser extension.
  2. Clone this repository.
  3. npm install
  4. npm run dev
  5. Open http://localhost:5173/ in your browser.

Usage

  1. Unlock your Xian Wallet.
  2. Click the "Increment" button to send a transaction that increments the counter.
  3. Check the toast notification for the transaction result.

Dependencies

  • Bulma: A modern CSS framework based on Flexbox.
  • Bulma-toast: Toast extension for Bulma.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Top categories

Loading Svelte Themes