Bahasa Indonesia
Mulai menggunakan B3 SDK dalam beberapa menit dan mulai membangun di ekosistem B3
Pasang paket SDK
npm install @b3dotfun/sdk
Impor gaya CSS
import "@b3dotfun/sdk/index.css";
import { B3Provider, SignInWithB3 } from "@b3dotfun/sdk/global-account/react"; function App() { return ( <B3Provider environment="production"> {children} </B3Provider> ); }
Akun Instan
import { SignInWithB3 } from "@b3dotfun/sdk/global-account/react"; function App() { return ( <B3Provider environment="production"> <SignInWithB3 provider={{ strategy: "google" }} partnerId="your-partner-id" onLoginSuccess={(globalAccount) => { console.log("Authenticated:", globalAccount); }} /> </B3Provider> ); }
Akses Likuiditas
import { AnySpend } from "@b3dotfun/sdk/anyspend/react"; function SwapPage() { return <AnySpend mode="page" />; }