Interface RequestOptions

Options for individual RPC requests.

2.0.0

interface RequestOptions {
    commitment?: Commitment;
    encoding?:
        | "base58"
        | "base64"
        | "base64+zstd"
        | "jsonParsed";
    maxRetries?: number;
    routeHint?: "rotate" | "sticky";
    routeIndex?: number;
    skipCache?: boolean;
    timeout?: number;
}

Properties

commitment?: Commitment
encoding?:
    | "base58"
    | "base64"
    | "base64+zstd"
    | "jsonParsed"
maxRetries?: number
routeHint?: "rotate" | "sticky"

Internal: routing hint to gateway for upstream selection

routeIndex?: number

Internal: round-robin index to help gateway select different upstreams

skipCache?: boolean
timeout?: number