Fund paid probes
A probe that does not pay measures a different service from the one buyers get. Paid probes go through the seller's real admission path: a funded channel, a signed Hold per request, a verified receipt, and a voucher at the end. The probe operator is just another buyer, with its own wallet.
Pins
Both the prober's buyer and the sellers must use the same deployment:
| Item | Devnet value |
|---|---|
| Program | 2grG8aUKE1HRjE8FqG4h5C2tmfAUG7PLsS8yL4nKrjdW |
| Genesis hash | EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG |
| IDL | programs/idl/im_channels.json (tracked) |
The mint. The program compiles its mint in. services/prober/src/fund-devnet.ts and the runbook pin Circle devnet USDC (4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU). The accounts recorded from the current devnet deployment, and the fleet's paid probe run, use the project's test mint 2LYaM1PTo4WwkoUx87E4pV39vWPDsohWVLyjUyA4MLUu, whose mint authority is the project operator's wallet. A vault for the wrong mint cannot be used: confirm which mint the program you target pins before funding, and if it is the test mint, ask the deployer for test tokens rather than substituting addresses.
1. Create a separate devnet buyer
solana-keygen new --outfile "$HOME/.config/im-prober/buyer-keypair.json"
chmod 600 "$HOME/.config/im-prober/buyer-keypair.json"
solana genesis-hash --url devnet
solana program show --url devnet 2grG8aUKE1HRjE8FqG4h5C2tmfAUG7PLsS8yL4nKrjdW
Get fee and rent SOL from the Solana devnet faucet and tokens for the pinned mint at the buyer's address. Never use a mainnet signer or mainnet funds. If the program is unavailable, ask the deployer instead of substituting an address.
2. Deposit into a vault
Write a mode-0600 fund.json:
{"rpc":"https://api.devnet.solana.com","signerFile":"/home/prober/.config/im-prober/buyer-keypair.json","amountMicros":85000}
bun services/prober/src/fund-devnet.ts "$HOME/.config/im-prober/fund.json"
It checks that the RPC is devnet, that the program is executable and the pinned mint exists, derives the vault PDA and its token account, initializes the vault if absent, and deposits exactly amountMicros from the buyer's associated token account (or sourceAccount if set). It prints {owner, vault, mint, signature, amount_micros}; keep the vault address and signature. If the submission is ambiguous, verify it on-chain before retrying.
3. Buyer settings
A private buyer.json (replace the vault, the seller key and serviceEnd, which is current unix time plus the service period you authorize):
{
"rpc": "https://api.devnet.solana.com",
"programId": "2grG8aUKE1HRjE8FqG4h5C2tmfAUG7PLsS8yL4nKrjdW",
"genesisHash": "EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG",
"signerFile": "/home/prober/.config/im-prober/buyer-keypair.json",
"vault": "FUNDED_VAULT_PUBKEY",
"serviceEnd": 1800000000,
"graceSeconds": 600,
"sellers": [{"origin":"https://seller.example","seller":"SELLER_LISTING_PUBKEY","channelBudgetMicros":8500}]
}
4. The payment module
The prober loads a local module named in probe.json ("payment": {"mode":"module","path":"services/prober/operator.local.ts"}). It must default-export a durable PaymentAdapter with flushVouchers() and close(). Files matching *.local.ts under services/prober are git-ignored. This is the runbook's module for an operator with a funded dedicated vault:
import { Connection, Keypair } from "@solana/web3.js";
import { ChannelWallet, DiscoveryClient } from "@im/sdk";
import { SolanaChannelBackend } from "@im/sdk/solana";
import { SdkPaymentAdapter } from "@im/prober";
// Settings file and signer file are outside the checkout with mode 0600.
type BuyerSettings = { rpc: string; genesisHash: string; signerFile: string; vault: string; programId: string;
serviceEnd: number; graceSeconds: number; sellers: { origin: string; seller: string; channelBudgetMicros: number }[] };
const settings = await Bun.file(process.env.PROBER_BUYER_SETTINGS!).json() as BuyerSettings;
const keyBytes = Uint8Array.from(await Bun.file(settings.signerFile).json());
const signer = Keypair.fromSecretKey(keyBytes);
keyBytes.fill(0);
const connection = new Connection(settings.rpc, "confirmed");
if (await connection.getGenesisHash() !== settings.genesisHash) throw new Error("unexpected Solana cluster");
const backend = new SolanaChannelBackend({ connection, signer, vault: settings.vault,
programId: settings.programId, genesisHash: settings.genesisHash });
const wallet = new ChannelWallet({ backend });
const discovery = new DiscoveryClient();
const routes = (await Promise.all(settings.sellers.map(seller =>
discovery.direct({ url: seller.origin, key: seller.seller })))).flat();
await wallet.reattach(routes);
for (const seller of settings.sellers) {
const route = routes.find(route => route.sellerId === seller.seller);
if (!route) throw new Error("seller has no verified route");
if (wallet.channels(route.sellerId).some(channel => channel.settler === route.settler && channel.payoutToken === route.payoutToken)) continue;
const channel = await wallet.open(route, { budget: BigInt(seller.channelBudgetMicros), serviceEnd: settings.serviceEnd, graceSeconds: settings.graceSeconds });
console.error(`buyer channel ${channel.address}; service end ${channel.serviceEnd}`);
}
const payment = new SdkPaymentAdapter({ wallet, domain: backend.domain, sellerOrigins: settings.sellers.map(s => s.origin) });
await payment.reconcile(routes);
export default payment;
It verifies each seller directly against its pinned key, reattaches the SDK's durable wallet, opens one channel per seller for the seller's exact signed (settler, payout_token) unless one exists, and reconciles outstanding receipts before admitting probes. For a shared vault, pass the SDK's Mandate option to ChannelWallet and use a delegated signer whose Mandate authorizes the exact (settler, payout_token), budget, cap, expiry and grace. Never log buyer keys.
Run with the settings path in the environment:
PROBER_BUYER_SETTINGS="$HOME/.config/im-prober/buyer.json" \
bun services/prober/src/cli.ts run "$HOME/.config/im-prober/probe.json"
The budget is conservative by design
Before each window the prober durably reserves rounds × (1 + 4 + 16 + 64) × capMicros, counting only the levels at or below the target's maxConcurrency. With rounds: 1 and capMicros: 100 that is 8,500 µUSDC. It never refunds an ambiguous reservation; a window that would exceed the remaining totalBudgetMicros is skipped (budget_exhausted), and an interrupted window is never replayed. totalBudgetMicros is a cumulative allowance for the journal, not per process. The real cap on spending is the vault or Mandate: enforce one independently.
For a first paid run, set totalBudgetMicros to one window's allowance, then record the channel, the first signed window, the voucher acknowledgment and the confirmed redemption transaction. Do not claim a paid run succeeded until it reconciles on-chain.
A capMicros below a route's w_req_micros skips that route (cap_too_low); a route whose schedule is not yet effective is skipped (schedule_inactive).
Evidence that the paid path works
The fleet's ABI-v2 paid probe published four signed windows with zero failed or refused samples and redeemed 1,307 µUSDC on devnet. That run used the project's own operator key; it is not an independent operator's run.