UNPKG

@dappnode/dappnodesdk

Version:

dappnodesdk is a tool to make the creation of new dappnode packages as simple as possible. It helps to initialize and publish in ethereum blockchain

11 lines (10 loc) 568 B
/** * Tries to connect to Ethereum providers in the order they appear in the input array. * Logs error messages and fallback attempts for each failed provider. * @param {string[]} providers - An array of Ethereum provider names (e.g., ['dappnode', 'infura']). * @returns {Promise<string>} A promise that resolves to the first successfully connected provider's name * or an empty string if none of the providers could be connected. */ export declare function getFirstAvailableEthProvider({ providers }: { providers: string[]; }): Promise<string | undefined>;