import { OfferHub } from "@offerhub/sdk"; // Initialize SDK — The Orchestrator mirrors your DAO's backend stateconst oh = new OfferHub({ apiKey: process.env.OFFERHUB_API_KEY! }); // Payroll Epoch: initialize a payroll period for the DAOconst payroll = await oh.payroll.create({ dao: "did:stellar:GDAO...", period: "2026-Q1", budget: 12000, asset: "USDC", contributors: [ { id: "did:stellar:GCONTRIB1...", allocation: 5000 }, { id: "did:stellar:GCONTRIB2...", allocation: 7000 }, ],}); // Fund the on-chain escrow vault — DAO treasury wallet is debitedawait oh.escrows.fund(payroll.id, { walletId: "wallet_dao_treasury...",});Target
DAO / Web3 Organization
Payroll Scope