On this page
Quickstart: Custodial
Integrate Brixs custodial wallet services into your Next.js application in minutes. This guide walks you through setting up a gasless, email-login experience.
Implementation Steps
1. Install the Core SDK
npm install @brixs/wallet-sdk @brixs/auth
2. Initialize the Provider
Wrap your React or Next.js application in the BrixsWalletProvider.
import { BrixsWalletProvider } from '@brixs/wallet-sdk';
export default function App({ Component, pageProps }) {
return (
<BrixsWalletProvider apiKey="YOUR_API_KEY_HERE" network="testnet">
<Component {...pageProps} />
</BrixsWalletProvider>
);
}
Advanced Configurations
Phase 1: Engine Initialization
The first phase requires a comprehensive setup of the execution environment. The Brixs Native EVM initializes the state and establishes secure connections with the P2P network. This ensures that when the DPoS Sequencer begins proposing blocks, there are no bottlenecks in transaction ingestion.
Transactions are ordered securely by the Encrypted Mempool to prevent MEV. The Native EVM processes transactions while the ZK-SNARK Prover Engine generates validity proofs. Once processed, the Sequencer commits the block to the Ethereum L1, achieving Rollup Finality and inheriting Ethereum's cryptographic security.