Return params to use with whatsabi.autoload(...)
whatsabi.autoload(address, {provider, ...whatsabi.loaders.defaultsWithEnv(process.env)}) Copy
whatsabi.autoload(address, {provider, ...whatsabi.loaders.defaultsWithEnv(process.env)})
whatsabi.autoload(address, { provider, ...whatsabi.loaders.defaultsWithEnv({ SOURCIFY_CHAIN_ID: 42161, ETHERSCAN_BASE_URL: "https://api.arbiscan.io/api", ETHERSCAN_API_KEY: "MYSECRETAPIKEY", }),}) Copy
whatsabi.autoload(address, { provider, ...whatsabi.loaders.defaultsWithEnv({ SOURCIFY_CHAIN_ID: 42161, ETHERSCAN_BASE_URL: "https://api.arbiscan.io/api", ETHERSCAN_API_KEY: "MYSECRETAPIKEY", }),})
Can be useful for stand-alone usage too!
const { abiLoader, signatureLookup } = whatsabi.loaders.defaultsWithEnv(env); Copy
const { abiLoader, signatureLookup } = whatsabi.loaders.defaultsWithEnv(env);
Return params to use with whatsabi.autoload(...)