txToaster
Showing transaction notifications with real-time progress updates
The txToaster utility provides a generic, adapter-based system for displaying transaction notifications with real-time progress updates. It supports any toast notification library through adapters, keeping users informed about transaction status, block inclusion, and errors.
Quick look

Quick Start
1. Install a Toast Library
Choose and install one of the supported toast libraries:
2. Setup the Adapter
Configure the global adapter once in your app's entry point:
3. Use in Components
Create toaster instances for each transaction:
Built-in Adapters
Typink provides three built-in adapters for popular toast libraries:
SonnerAdapter
For Sonner toast library (recommended for its simplicity and beautiful default styling).
ReactToastifyAdapter
For React-Toastify library.
ReactHotToastAdapter
For React-Hot-Toast library.
Complete Usage Examples
Contract Transaction
General Substrate Transaction
With Custom Messages
Last updated
Was this helpful?