Skip to main content
npm install @neus/sdk
The JavaScript SDK builds hosted URLs, runs gate checks, polls status, and optional in-app signing. Create a gate and embed it with one gateIdGet started. MCP calls the same APIs: MCP.

Default placement

Use caseWhere
Hosted verify URL, VerifyGateBrowser (or WebView)
gateCheck with gateIdServer
verifyFromApp, npk_*Server
Avoid credentialed fetch to api.neus.network from the browser; use SDK helpers or your backend.

Browser (default)

Ceremony on NEUS:
import { getHostedCheckoutUrl } from '@neus/sdk';

window.location.assign(
  getHostedCheckoutUrl({
    gateId: 'gate_your-app-name',
    returnUrl: 'https://myapp.com/callback',
  }),
);
React: VerifyGate from @neus/sdk/widgetsQuickstart. After you have qHash, optional wait: NeusClient + pollProofStatusVerifications.

In-app signing (optional)

client.verify({ wallet: ... }) only if signing stays in your page. Pass the wallet/provider explicitly. Non-EVM signing also needs chain as CAIP-2. CAIP-380 Portable Proof · Signing format.

Eligibility on your server

const client = new NeusClient();

const gate = await client.gateCheck({
  gateId: 'gate_your-app-name',
  address: '0x...',
});

API mapping

NeedMethod
Hosted handoffgetHostedCheckoutUrl(), VerifyGate
Sign inside your appverify()
WaitpollProofStatus()
Allow / denygateCheck() (server)
Optional: timeout on NeusClient.

Defaults

client.verify() defaults private. Security. VerifyGate create also defaults private. Security and trust

Next

JavaScript

Verifications

Authentication

Last modified on June 5, 2026