A React component library that provides the UI for @tuwaio/pulsar-core. Includes components, providers, and i18n support for transaction tracking.
npm install @tuwaio/nova-transactions


The official React UI component library for the Pulsar transaction engine. It provides a suite of pre-built, accessible, and highly customizable modals, toasts, and history widgets to visualize the entire transaction lifecycle.
---
This package provides the View Layer for TUWA's transaction tracking ecosystem. It works by consuming the state from your headless Pulsar store and rendering the appropriate UI. You must connect your Pulsar store's state and actions to the component, which acts as a self-contained UI manager that renders modals and toasts.
---
- 🧩 Pre-built UI Suite: A set of accessible components including TrackingTxModal, TransactionsInfoModal, and ToastTransaction, all managed internally by the NovaTransactionsProvider.
- 🔌 Plug-and-Play Integration: Once connected to your Pulsar store, the UI automatically reacts to all transaction state changes.
- 🌐 Internationalization (custom version of i18n): Built-in support for multiple languages with easy overrides for all text content via the labels prop.
- 🎨 Highly Customizable: Styled with @tuwaio/nova-core to be easily themed using CSS variables. Almost every sub-component can be replaced with your own implementation via the customization prop.
---
Install the main package:
``bash`
pnpm add @tuwaio/nova-transactions
This package requires several peer dependencies for UI rendering:
`bashCore dependencies
pnpm add @tuwaio/nova-core @tuwaio/pulsar-core @tuwaio/orbit-core
$3
For a complete setup with all TUWA packages:
`bash
Using pnpm (recommended), but you can use npm, yarn or bun as well
pnpm add @tuwaio/nova-transactions @tuwaio/nova-core @tuwaio/pulsar-core @tuwaio/orbit-core react-toastify framer-motion @radix-ui/react-dialog @heroicons/react @web3icons/common @web3icons/react dayjs react immer zustand clsx tailwind-merge
`---
🚀 Getting Started
To use this library, you must render the
component at a high level in your application and pass the state and actions from your Pulsar store to it as props.Here is a complete example of a
src/providers/index.tsx file that configures the entire system.$3
`tsx
// src/hooks/txTrackingHooks.tsx
import { createBoundedUseStore, createPulsarStore } from '@tuwaio/pulsar-core';
import { evmAdapter } from '@tuwaio/pulsar-evm';import { appChains, config } from '@/configs/wagmiConfig';
const storageName = 'transactions-tracking-storage';
export enum TxType {
example = 'example',
}
type ExampleTx = Transaction & {
type: TxType.example;
payload: {
value: number;
};
};
export type TransactionUnion = ExampleTx;
export const usePulsarStore = createBoundedUseStore(
createPulsarStore({
name: storageName,
adapter: evmAdapter(config, appChains),
}),
);
`$3
`tsx
// src/providers/NovaTransactionsProvider.tsx
import { NovaTransactionsProvider as NP } from '@tuwaio/nova-transactions/providers';
import { TransactionAdapter } from '@tuwaio/pulsar-core';
import { useInitializeTransactionsPool } from '@tuwaio/pulsar-react';
import { useAccount } from 'wagmi';import { usePulsarStore } from '@/hooks/txTrackingHooks';
export function NovaTransactionsProvider() {
const transactionsPool = usePulsarStore((state) => state.transactionsPool);
const initialTx = usePulsarStore((state) => state.initialTx);
const closeTxTrackedModal = usePulsarStore((state) => state.closeTxTrackedModal);
const handleTransaction = usePulsarStore((state) => state.handleTransaction);
const initializeTransactionsPool = usePulsarStore((state) => state.initializeTransactionsPool);
const getAdapter = usePulsarStore((state) => state.getAdapter);
useInitializeTransactionsPool({ initializeTransactionsPool });
const { address } = useAccount();
return (
transactionsPool={transactionsPool}
initialTx={initialTx}
closeTxTrackedModal={closeTxTrackedModal}
handleTransaction={handleTransaction}
connectedWalletAddress={address}
connectedAdapterType={TransactionAdapter.EVM}
adapter={getAdapter()}
/>
);
}
`$3
`tsx
// src/providers/index.tsx
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { ReactNode } from 'react';
import { WagmiProvider } from 'wagmi';import { config } from '@/configs/wagmiConfig';
import { NovaTransactionsProvider } from './NovaTransactionsProvider';
const queryClient = new QueryClient();
export function Providers({ children }: { children: ReactNode }) {
return (
{children}
);
}
`🎨 Customization
You can easily override the default English text by passing a
labels prop, or replace entire components using the customization prop.`tsx
// 1. Override text labels
labels={{
statuses: {
pending: 'В обработке...',
success: 'Успешно!',
failed: 'Ошибка!',
},
// ... other keys
}}
customization={{
components: {
statusBadge: ({ tx }) => ,
},
}}
// ... other required props
/>
``---
Contributions are welcome! Please read our main Contribution Guidelines.
If you find this library useful, please consider supporting its development. Every contribution helps!
This project is licensed under the Apache-2.0 License - see the LICENSE file for details.