ens-proxy/api/_utils.ts
2022-08-22 15:54:07 +03:00

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
}