Skip to content

API Reference

This section contains the complete API documentation for the SIP Protocol SDK.

Terminal window
npm install @sip-protocol/sdk
ModuleDescription
SIPMain SIP client class
IntentBuilderIntent building and creation
stealthStealth address generation (EIP-5564)
cryptoPedersen commitments, hashing
privacyViewing keys, encryption
proofsZK proof providers
adaptersNEAR Intents, wallet adapters
validationInput validation utilities
import { SIP, IntentBuilder, PrivacyLevel } from '@sip-protocol/sdk'
// Initialize client
const sip = new SIP({
nearNetwork: 'testnet',
privacyLevel: PrivacyLevel.SHIELDED
})
// Create shielded intent
const intent = await new IntentBuilder()
.setPrivacyLevel(PrivacyLevel.SHIELDED)
.setInput({ token: 'USDC', amount: '100', chain: 'ethereum' })
.setOutput({ token: 'SOL', chain: 'solana' })
.build()

API docs auto-generated from @sip-protocol/sdk v0.1.9