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