Brixs

Quickstart: SDK

Connecting a decentralized application (dApp) to a non-custodial wallet via the Brixs dApp SDK is the standard way to build on our network.

Complete Implementation Guide

1. Installation

Install the React hooks and UI components. We leverage TanStack Query for optimal state management.

Code
npm install @brixs/dapp-kit @tanstack/react-query

2. UI Integration

Simply import the ConnectButton component. This handles wallet discovery, network switching, and persistent sessions automatically.

Code
import { ConnectButton } from '@brixs/dapp-kit'; export function Header() { return ( <header className="flex justify-between p-4 bg-black text-white"> <h1>My Web3 App</h1> <ConnectButton /> </header> ); }

Transaction Signing Flow

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.