Sign In

@fluxfi/enoki

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluxfi/enoki

zkLogin authentication and sponsored transactions

latest
Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
3
-25%
Maintainers
1
Weekly downloads
 
Created
Source

@fluxfi/enoki

zkLogin authentication and sponsored transactions. Enable users to sign in with Google, Twitch, Facebook, and other OAuth providers, and execute transactions without gas fees.

Features

  • zkLogin: Authenticate users with OAuth providers (Google, Twitch, Facebook)
  • Sponsored Transactions: Execute transactions without requiring users to hold gas
  • Wallet Integration: Register Enoki wallets with dApp Kit
  • Subname Management: Create and manage SuiNS subnames

Installation

npm install @fluxfi/enoki

Quick Start

Register Enoki wallets

import { registerEnokiWallets } from '@fluxfi/enoki';

registerEnokiWallets({
	apiKey: 'your-enoki-api-key',
	providers: ['google', 'twitch', 'facebook'],
});

Use with React and dApp Kit

import { registerEnokiWallets } from '@fluxfi/enoki';
import { useEnokiFlow } from '@fluxfi/enoki/react';

// In your app setup
registerEnokiWallets({
	apiKey: 'your-enoki-api-key',
	providers: ['google'],
});

// In your component
function LoginButton() {
	const { login } = useEnokiFlow();

	return <button onClick={() => login('google')}>Sign in with Google</button>;
}

Low-level client usage

import { EnokiClient } from '@fluxfi/enoki';

const client = new EnokiClient({
	apiKey: 'your-enoki-api-key',
});

// Create a sponsored transaction
const sponsored = await client.createSponsoredTransaction({
	network: 'mainnet',
	sender: '0x...',
	transactionKindBytes: '...',
});

// Execute it
await client.executeSponsoredTransaction({
	digest: sponsored.digest,
	signature: '...',
});

Documentation

See the Enoki documentation for detailed setup and usage.

FAQs

Package last updated on 29 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts