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.
Fund Me
Let users on-ramp fiat into crypto straight to their Stellar wallet from React.
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
Sign and submit Stellar transactions from your React app using the Blux SDK.
Sign Auth Entry
Sign a Soroban authorization entry from your React app using the Blux SDK.
Sign Message
Request a signed message from the user's wallet using the Blux SDK.
Sign Transaction
Sign a transaction in your React app without submitting it, using the Blux SDK.