Started move of gerty api calls into helpers.py

This commit is contained in:
Black Coffee
2022-10-06 12:13:19 +01:00
parent f828e4a641
commit 1280d3ba74
3 changed files with 9 additions and 8 deletions
+7
View File
@@ -0,0 +1,7 @@
import httpx
async def get_mempool_recommended_fees(gerty):
if isinstance(gerty.mempool_endpoint, str):
async with httpx.AsyncClient() as client:
r = await client.get(gerty.mempool_endpoint + "/api/v1/fees/recommended")
return r.json()