dApp kit

React SDK for building EVE Frontier dApps on the Sui blockchain

Full API documentation (TypeDoc): http://sui-docs.evefrontier.com/arrow-up-right

Features

  • 🔌 Wallet Connection - Easy integration with EVE Vault and Sui wallets

  • 📦 Smart Object Data - Fetch and transform assembly data via GraphQL

  • Sponsored Transactions - Gas-free transactions via EVE Frontier backend

  • 🔄 Auto-Polling - Real-time updates with automatic data refresh

  • 🎨 TypeScript First - Full type safety for all assembly types

Installation

npm install @evefrontier/dapp-kit
# or
pnpm add @evefrontier/dapp-kit

Peer Dependencies

npm install @tanstack/react-query react

Keep your app’s versions of react, @mysten/dapp-kit-react, and @mysten/sui in sync with the versions used by this package to avoid type or runtime mismatches. Check package.json for the current ranges.

Quick Start

1. Set up the Provider

Wrap your app with EveFrontierProvider:

2. Configure Assembly ID

Set the assembly ID via URL parameter:

https://yourdapp.com/?tenant=utopia&itemId=...

3. Use the Hooks

Core Concepts

Hooks

Hook
Description

useConnection()

Wallet connection state and methods

useSmartObject()

Current assembly data with auto-polling

useNotification()

Display user notifications

dAppKit.signTransaction()

Sign a transaction (from @mysten/dapp-kit-react)

dAppKit.signAndExecuteTransaction()

Sign and execute a transaction

Standard Transactions (via dAppKit)

For normal transactions, use the dAppKit object which wraps Mysten's @mysten/dapp-kit-react:

Assembly Types

The SDK supports all EVE Frontier assembly types:

GraphQL API

For custom data fetching:

Utilities

API Reference

Full API documentation (TypeDoc): http://sui-docs.evefrontier.com/arrow-up-right

Last updated