mirror of
https://github.com/oceanprotocol/ens-proxy.git
synced 2024-11-15 01:35:14 +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
|
||
|
}
|