Skip to content

Instantly share code, notes, and snippets.

View BravoNatalie's full-sized avatar
👩‍💻
let's code

Natalie Bravo BravoNatalie

👩‍💻
let's code
View GitHub Profile
@miguelmota
miguelmota / GasService.test.ts
Last active May 11, 2022 19:35
get gas estimations using etherscan, etherchain, blocknative, alchemy, etc
import { GasService } from 'src/gasboost/GasService'
describe('GasService', () => {
it('getGasFeeData', async () => {
const gasService = new GasService()
const result = await gasService.getGasFeeData()
console.log(result)
expect(result).toBeTruthy()
expect(result.slow.gasPrice).toBeTruthy()
expect(result.standard.gasPrice).toBeTruthy()