mirror of
https://github.com/oceanprotocol/ens-proxy.git
synced 2024-12-02 05:57:34 +01:00
10 lines
216 B
TypeScript
10 lines
216 B
TypeScript
import { ethers } from 'ethers'
|
|
|
|
export async function getProvider(): Promise<any> {
|
|
const provider = new ethers.providers.InfuraProvider(
|
|
'homestead',
|
|
process.env.INFURA_PROJECT_ID
|
|
)
|
|
return provider
|
|
}
|