Kinlock Guides
Plain-language walkthroughs for senders locking funds, payees claiming tranches, attesters vetting institutions, and developers integrating the SDK.
Guide for Senders
Senders lock USDC funds to ensure they reach the intended recipient on schedule:
- Select Lock Mode:
- Verified Payee: Choose an institution (School or Housing) verified by an official local attester. Receipts prove payment to a vetted payee.
- Direct Recipient: Enter any valid Stellar address (
G...orC...) for milestones, rent, or contractor payments.
- Set the Schedule: Specify the total amount and up to 12 scheduled unlock dates.
- Confirm Preflight Checks: The SDK automatically verifies that your balance is sufficient, the recipient holds an active USDC trustline, and the payee is active.
- Approve and Fund: Sign the transaction using your Stellar wallet (Freighter, Lobstr, xBull). Funds transfer directly into the Soroban vault.
- Share the Claim Link: Copy the generated link (e.g.
/claim/42#r=...&s=...) and send it privately to the recipient via WhatsApp, Email, or SMS. - Reclaim on Expiry: If funds remain unclaimed after the lock expiration date, visit
/locks/[id]and click Claim Refund. 100% of unclaimed funds return to your wallet.
Guide for Payees & Recipients
Payees receive funds securely without managing complicated escrow accounts:
- Generate a Payment Request: Visit
/requestto generate a pre-filled payment request with your address, reference code, and suggested tranche dates. - Receive the Claim Link: When the sender funds the lock, open the received claim link. The browser verifies the reference against the on-chain hash.
- Release Tranches: When a scheduled tranche reaches its unlock date, connect your payout wallet and click Release. The USDC immediately transfers to your account.
- Decline Unwanted Funds: If a student leaves or an agreement is cancelled, click Decline. All unreleased remainder funds return immediately to the sender.
- Export Receipts: After claiming, view your permanent receipt at
/r/[txHash]/[eventIndex]or export your full transaction history to CSV from the/payeedashboard.
Guide for Attesters
Attesters are trusted local organizations (NGOs, school boards, housing authorities) that vouch for institutions:
- Verify Off-Chain Identity: Confirm the institution's official registration, physical presence, and bank/crypto payout address.
- Run Readiness Checks: Run
pnpm check-attester-readiness <payout-address>to confirm the account has an authorized USDC trustline and minimum XLM float. - Submit Registry PR: Create a new record in
payees/<country>/<slug>.jsonand submit a PR tokinlock-registry. - On-Chain Vouch: Call
register_payeeon the Soroban contract using your authorized attester key. - Emergency Oversight: If fraud or address compromise occurs, call
set_status(payee_id, Suspended)orRevokedto freeze new locks and enable sender refunds.
Developer Quick Start
Integrate Kinlock in TypeScript in under five minutes:
import { createLock, getLock, preflight, buildClaimLink } from "@kinlock/sdk";
// 1. Run preflight validation
const checks = await preflight(config, {
sender: "G...",
recipient: "G...",
total: 1000000000n, // 100 USDC in base units (7 decimals)
refHash: "...",
});
// 2. Build and submit transaction
const tx = await createLock(config, {
sender: "G...",
recipient: "G...",
token: config.usdcContractId,
tranches: [{ amount: 1000000000n, unlockAt: 1735689600n }],
expiresAt: 1740787200n,
refHash: "...",
});