import { OfferHub } from "@offerhub/sdk"; // Initialize SDK — The Orchestrator mirrors your property platform stateconst oh = new OfferHub({ apiKey: process.env.OFFERHUB_API_KEY! }); // Deposit Escrow: initialize a non-custodial security depositconst deposit = await oh.escrows.init({ tenant: "did:stellar:GTENANT...", landlord: "did:stellar:GLANDLORD...", amount: 2000, asset: "USDC", conditions: { inspectionRequired: true, releaseWindow: 30, // days after lease ends },}); // Fund the on-chain vault — tenant signs and funds the escrowawait oh.escrows.fund(deposit.id, { walletId: "wallet_01HTENANT...",});Target
Residential / Commercial
Property Scope