import { DeFiService } from "https://deno.land/x/defi/defi.service.ts"
const gasPriceInfo = await DeFiService.getGasPriceInfo()
console.log(gasPriceInfo)
Check the DeFiService class for more usage examples.
deno run --allow-net https://deno.land/x/defi/test-it.ts
Feel free to create a pull request if you would like to improve things. Especially in the context of interplanetary decentralized finance..
If you like my work please consider downloading the brave browser via my promotion link: https://brave.com/fan464.