ens-proxy/api/_utils.ts

10 lines
216 B
TypeScript
Raw Normal View History

2022-08-22 14:42:40 +02:00
import { ethers } from 'ethers'
export async function getProvider(): Promise<any> {
const provider = new ethers.providers.InfuraProvider(
'homestead',
process.env.INFURA_PROJECT_ID
)
return provider
}