Usage
Learn how to authenticate users, manage profiles, and submit transactions with Blux.
Blux provides ready-made UI flows for the most common wallet interactions. All of them are accessible through the useBlux hook and require no additional setup beyond the BluxProvider.
Quick Example
import { useBlux } from "@bluxcc/react";
function App() {
const { login, logout, sendTransaction, isAuthenticated, user } = useBlux();
}All actions are co-located on the useBlux hook, so you only ever need a single import to access the full Blux feature set.
Login
Authenticate users in your app with Blux's built-in login modal.
Profile
Display and manage the connected user's profile using the Blux SDK.
Send Transaction
Submit Stellar transactions from your React app using the Blux SDK.
Sign Message
Request a signed message from the user's wallet using the Blux SDK.