Integration

Meridian is live on the Match Network

5 of 6 complete
Integration checklist
  1. Install SDK@investor-tech/sdk v2.4.1
  2. Initialize Investor providerApplication id and registry configured
  3. Add Future Split previewRendered in the trade footer
  4. Pass transaction receipt12,480 receipts in the last 24 hours
  5. Configure Match EscrowEscrow funded and bonded
  6. 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.

Implementation
Install
npm install @investor-tech/sdk
# or
pnpm add @investor-tech/sdk
app/providers.tsx
1import { InvestorProvider, createClient } from "@investor-tech/sdk";
2
3const investor = createClient({
4 application: process.env.NEXT_PUBLIC_INVESTOR_APP_ID,
5 network: "robinhood-chain",
6 registry: process.env.NEXT_PUBLIC_INVESTOR_REGISTRY,
7});
8
9export function Providers({ children }: { children: React.ReactNode }) {
10 return <InvestorProvider client={investor}>{children}</InvestorProvider>;
11}
components/TradeFooter.tsx
1import { useFutureSplit } from "@investor-tech/sdk/react";
2
3export 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 });
6
7 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}
API keys
  • 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.
Environment
.env
INVESTOR_NETWORK=robinhood-chain
NEXT_PUBLIC_INVESTOR_APP_ID=app_live_meridian_7c41f9
NEXT_PUBLIC_INVESTOR_REGISTRY=registry.investor.tech
INVESTOR_SECRET_KEY=sk_live_...
INVESTOR_WEBHOOK_SECRET=whsec_...
SDK version2.4.1
Receipts, 24h12,480
Verified rate99.98%
Median settlement2m 14s