Integration
Meridian is live on the Match Network
5 of 6 complete
- Install SDK@investor-tech/sdk v2.4.1
- Initialize Investor providerApplication id and registry configured
- Add Future Split previewRendered in the trade footer
- Pass transaction receipt12,480 receipts in the last 24 hours
- Configure Match EscrowEscrow funded and bonded
- 6Verify contribution eventConfirm settled state in your own ledger
Contract addresses are resolved from the network registry at runtime. Configure the registry through environment variables rather than hard-coding an address.
Install
npm install @investor-tech/sdk# orpnpm add @investor-tech/sdkapp/providers.tsx
1import { InvestorProvider, createClient } from "@investor-tech/sdk";23const investor = createClient({4 application: process.env.NEXT_PUBLIC_INVESTOR_APP_ID,5 network: "robinhood-chain",6 registry: process.env.NEXT_PUBLIC_INVESTOR_REGISTRY,7});89export function Providers({ children }: { children: React.ReactNode }) {10 return <InvestorProvider client={investor}>{children}</InvestorProvider>;11}components/TradeFooter.tsx
1import { useFutureSplit } from "@investor-tech/sdk/react";23export function TradeFooter({ notional }: { notional: number }) {4 // Reads the connected account's own Future Rate. Never set it yourself.5 const { rate, contribution, match, recipe } = useFutureSplit({ notional });67 return (8 <dl className="split-preview">9 <dt>Future Split</dt>10 <dd>{contribution.formatted}</dd>11 <dt>{match.application} match</dt>12 <dd>{match.formatted}</dd>13 <dt>Destination</dt>14 <dd>{recipe.name}</dd>15 </dl>16 );17}- Live publishableClientNEXT_PUBLIC_INVESTOR_APP_ID
app_live•••••••••••••••• - Live secretServerINVESTOR_SECRET_KEY
sk_live_•••••••••••••••• - Sandbox secretSandboxINVESTOR_SECRET_KEY
sk_test_••••••••••••••••
Secrets are stored in your environment, never in the client bundle.
.env
INVESTOR_NETWORK=robinhood-chainNEXT_PUBLIC_INVESTOR_APP_ID=app_live_meridian_7c41f9NEXT_PUBLIC_INVESTOR_REGISTRY=registry.investor.techINVESTOR_SECRET_KEY=sk_live_...INVESTOR_WEBHOOK_SECRET=whsec_...SDK version2.4.1
Receipts, 24h12,480
Verified rate99.98%
Median settlement2m 14s