UNPKG

@iexec/web3mail

Version:

This product enables users to confidentially store data–such as mail address, documents, personal information ...

12 lines (10 loc) 400 B
import { getSignerFromPrivateKey } from 'iexec/utils'; import { Web3SignerProvider } from '../web3mail/types.js'; export const getWeb3Provider = ( privateKey: string, host: number | string, options: { allowExperimentalNetworks?: boolean } = {} ): Web3SignerProvider => getSignerFromPrivateKey(`${host}`, privateKey, { allowExperimentalNetworks: options?.allowExperimentalNetworks, });