For Developers

IP infrastructure
for your app

NEXAR is a REST API. Register IP, gate content, collect royalties. Three calls. Any stack. No blockchain knowledge needed.

Why NEXAR

What you don't have to build

No blockchain setup

No RPC nodes. No contract deployment. No ABI management. No gas estimation. One POST request and your file is on-chain.

No wallet infrastructure

Users never need MetaMask or a seed phrase. Privy MPC wallets created automatically. You pay gas. They own the IP.

No encryption to implement

AES-256 encryption handled server-side. Pinata IPFS storage handled automatically. You send base64. We handle everything else.

No licensing system to build

Smart contract licensing enforced by Story Protocol. Royalty flows, license tokens, access control — all handled. You just call the API.

Under the Hood

Built on proven infrastructure

01

Story Protocol

On-chain IP registry and licensing. Every file gets a verifiable ipId. License terms enforced by smart contracts. Royalties distributed automatically.

02

Confidential Data Rails (CDR)

Encrypted vault storage for sensitive content. Access conditions enforced on-chain. Keys never exposed — decryption requires a valid license.

03

Privy MPC Wallets

Non-custodial wallets created per user. Private keys split via MPC — never on our server. Users own their IP. NEXAR pays the gas.

04

Pinata IPFS

All encrypted files stored on IPFS. Content-addressed. Permanent. Decentralized. CIDs registered on-chain for verification.

05

Aeneid Testnet (Story Protocol)

Chain ID: 1315. All contracts deployed and verified. Explorer: aeneid.explorer.story.foundation

06

Telegram + Photon Spectrum

iMessage and WhatsApp via Photon Spectrum SDK. Telegram via native Bot API. All three platforms hit the same NEXAR backend.

Contracts

Live on Aeneid Testnet

NEXARRegistry

0x0abf194137a47E8cC6D8773E38c8CD399D674128

Maps ipId → vaultUuid on-chain. Central registry for all NEXAR IP assets.

DynamicPricingHook

0xeAA90ff07786E2f8Ed7012faB5949a0257cCfb96

Handles license pricing per asset. Plugs into Story Protocol's licensing hook system.

TimedAccessCondition

0x0c8cE21CE246aaa2601efBB5Eb3Ba22D0924E26b

Enforces time-limited vault access on-chain. Used for NDA mode and expiring shares.

InferenceAccessCondition

0x3cAF4AaDcbB9DEB261d4E23A010652cEc03E0d2b

Gates model inference access. Verifies compute units and license terms before access.

Architecture

The operator-pays-gas pattern

01

What it means

Your server (operator) signs all blockchain transactions. Users own the IP — their wallet address is the registered owner. But they never pay gas, never need ETH, never touch crypto.

02

How wallets are created

User sends "register myhandle" on Telegram. NEXAR calls Privy API → creates MPC wallet. Address stored in DB. User owns it. We never see the key.

03

How signing works

Operator wallet (your .env PRIVATE_KEY) pays gas for every Story Protocol transaction. User's Privy wallet is set as the IP owner and recipient.

04

Why this matters

Zero friction onboarding. Non-crypto users can own IP. No seed phrases. No MetaMask. No gas fees. Their wallet, their IP — your server handles the complexity.

API Endpoints

Three calls, any stack

POST

/api/asset/register

Register any file as Story Protocol IP

POST

/api/license/mint

Mint a license token for a buyer

POST

/api/vault/access

Verify license and decrypt file content

POST

/api/royalty/claim

Collect all earned royalties to wallet

GET

/api/license/held/:label

List all licenses held by a user

GET

/access/:token

Public download link — no account needed

"We integrated NEXAR into our data marketplace in an afternoon. Three API calls. Our sellers now have on-chain proof for every dataset."
Backend Engineer
AI Startup
"The operator-pays-gas pattern is exactly what we needed. Our users don't know what blockchain is — and they don't need to. It just works."
CTO
SaaS Platform
"We replaced our entire content licensing system with NEXAR's API. License checks, royalty flows, access control — all handled. We deleted 2,000 lines of code."
Lead Developer
Media Platform

Start building
in minutes.

Clone the repo. Read the docs. Your first IP registration in under 5 minutes.