TxnSettings
The TxnSettings component is a popover that allows users to set the transaction priority, fee cap, and other transaction settings.
- Transaction priority: normal
- Priority fee cap: dynamic
Installation
1. Install shadcn/ui popover, toggle group, input, and button components
Use shadcn/ui CLI or manually install the shadcn/ui popover, toggle group, input and button components.
2. Install SolanaUI TxnSettings
Copy the code below to src/components/sol/txn-settings.tsx
.
3. Add TxnSettings provider to your layout
4. Use TxnSettings
Import the TxnSettings
component and use it in your app.