• getConstant is a utility that will retrieve a network sensitive constant. The easiest way to use this function is to just pass your web3 instance to the function, and the function will query the web3 instance to see what network it is currently using. You can also just pass in the network name.

    Example

    let blockExplorer = await getConstant("blockExplorer", web3);
    let relayServiceURL = await getConstant("relayServiceURL", web3);

    Type Parameters

    • K extends "tokenList" | "bridgeExplorer" | "ambFinalizationRate" | "scheduledPaymentFeeFixedUSD" | "scheduledPaymentFeePercentage" | "uniswapPairInitCodeHash" | "publicRpcUrls" | "safeTransactionServiceUrl" | "merchantUniLinkDomain" | "tallyServiceURL" | keyof RequiredNetworkConstants | "bridgedDaiTokenSymbol" | "bridgedCardTokenSymbol"

    Parameters

    Returns Promise<Constants[K]>

Generated using TypeDoc