execute(plan, options)
L1Submitter
import { L1Submitter, SubmitLane } from '@rlock/cpsr-sdk';
const submitter = new L1Submitter(connection);
const res = await submitter.submit(tx, [payer], { lane: SubmitLane.L1, skipPreflight: false, maxRetries: 3 });
await connection.confirmTransaction(res.signature, 'confirmed');RouterSubmitter
Use when posting to a JSON-RPC Router you control (often skipPreflight on the gateway).
Returns
type SubmitResult = {
signature: string;
lane: 'l1' | 'router';
preflightSkipped: boolean;
attempts: number;
}