supra-ts-sdk - v2.0.0
    Preparing search index...

    Interface NetworkConfig

    interface NetworkConfig {
        name: string;
        chainId: number;
        rpcUrl: string;
        maxGas?: bigint;
        gasUnitPrice?: bigint;
        estimateMaxGas?: boolean;
        maxGasEstimateMultiplier?: number;
        timeout?: number;
        retry?: { attempts: number; maxDelayMs: number };
        waitTimeoutMs?: number;
        txExpirySecs?: number;
        verifyChainId?: boolean;
    }
    Index
    name: string
    chainId: number
    rpcUrl: string
    maxGas?: bigint

    Max gas of every transaction that sets none; when absent, the max gas is estimated or defaulted.

    gasUnitPrice?: bigint

    Gas unit price of every transaction that sets none, used as given; when absent, the node's estimate is read for each transaction.

    estimateMaxGas?: boolean

    Estimate the max gas of a transaction that sets none; default true.

    maxGasEstimateMultiplier?: number

    Factor applied to the simulated gas used; default DEFAULT_MAX_GAS_ESTIMATE_MULTIPLIER.

    timeout?: number

    Request timeout in milliseconds.

    retry?: { attempts: number; maxDelayMs: number }

    Retry policy of idempotent GET requests; no retry when absent.

    waitTimeoutMs?: number

    Longest wait for a transaction's final status, in milliseconds, when the call sets none.

    txExpirySecs?: number

    Seconds from the client's clock to the expiration time of a transaction built without txExpiryTime, at most the node's maximum time to live less TX_EXPIRATION_MARGIN_SECS; default DEFAULT_TX_EXPIRATION_DURATION.

    verifyChainId?: boolean

    false signs with chainId without reading the node's chain ID. Absent or true: the node's chain ID is read before the first signature and every signature checks chainId and the transaction's chain ID against it.