@orca-so/tx-sender
    Preparing search index...

    Type Alias RpcConfig

    Configuration for RPC settings and transaction sending strategy.

    The transaction sending strategy should be configured based on your RPC tier:

    • Premium RPC (e.g., Helius, Triton): Can use default aggressive settings with resend enabled
    • Public/Free RPC: Should use conservative settings to avoid rate limits
    // Premium RPC: Use defaults for maximum landing rate
    setRpc("https://mainnet.helius-rpc.com/?api-key=...");

    // Public/Free RPC: Conservative settings to control RPC usage
    setRpc("https://api.devnet.solana.com", {
    pollIntervalMs: 1000,
    resendOnPoll: false,
    });
    type RpcConfig = {
        chainId: ChainId;
        pollIntervalMs: number;
        resendOnPoll: boolean;
        rpcUrl: string;
        supportsPriorityFeePercentile: boolean;
    }
    Index

    Properties

    chainId: ChainId

    The blockchain network chain ID

    pollIntervalMs: number

    Milliseconds between confirmation status checks. Set to 0 for continuous polling (no delay).

    resendOnPoll: boolean

    Whether to resend the transaction on each poll attempt.

    • true (default): Resend transaction on every poll. Higher RPC usage, best for premium RPCs.
    • false: Send once, then only poll for status. Lower RPC usage, recommended for public RPCs.
    rpcUrl: string

    The RPC endpoint URL

    supportsPriorityFeePercentile: boolean

    Whether the RPC supports percentile-based priority fee estimation