Developer Documentation
Complete SDK documentation and integration guides for building on Escrow Vault
SDK In Development: The Escrow Vault SDK is currently under active development. Documentation and examples shown here represent the planned API design. For early access and updates, join our community on Discord or follow our GitHub repository.
Quick Start
Installation
npm install @escrow-vault/sdk @solana/web3.jsInitialize
import { EscrowVault } from '@escrow-vault/sdk';
import { Connection, clusterApiUrl } from '@solana/web3.js';
// Connect to Devnet
const connection = new Connection(
clusterApiUrl('devnet'),
'confirmed'
);
// Initialize Escrow Vault
const vault = new EscrowVault({
connection,
network: 'devnet'
});Create Your First Escrow
const escrow = await vault.createEscrow({
sender: senderPublicKey,
receiver: receiverPublicKey,
asset: {
type: 'SOL',
amount: 2.5
},
condition: {
type: 'mutual_approval'
}
});
console.log('Escrow ID:', escrow.id);