ens-proxy/api/_utils.ts
2023-01-12 13:53:33 +02: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
}