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
- Install the Xian Wallet browser extension.
- Clone this repository.
npm install
npm run dev
- Open
http://localhost:5173/
in your browser.
Usage
- Unlock your Xian Wallet.
- Click the "Increment" button to send a transaction that increments the counter.
- 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.