Skip to content

mirshko/unleaded-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unleaded-api

API

  • GET /api/gas-prices
  • GET /api/eth-prices?fiat={currency}
  • GET /api/gas-guzzlers
  • GET /api/jazzicon?address={address}

Examples

GET Gas Prices

Required Params: none

GET https://api.unleaded.mirshko.dev/api/gas-prices

# Response
{
  "timestamp": 1634458254859,
  "slow": {
    "time": 1002,
    "price": 60
  },
  "average": {
    "time": 108,
    "price": 63
  },
  "fast": {
    "time": 48,
    "price": 75
  },
  "fastest": {
    "time": 36,
    "price": 80
  }
}

GET ETH Prices

Required Params: fiat

GET https://api.unleaded.mirshko.dev/api/eth-prices?fiat=USD,EUR

# Respone
{
  "USD": 3895.19,
  "EUR": 3348.53
}

GET Gas Guzzlers

Required Params: none

GET https://api.unleaded.mirshko.dev/api/gas-guzzlers

# Response

[
  {
    "address": "0x7be8076f4ea4a4ad08075c2508e481d6c946d12b",
    "pct": 11.83,
    "gasused": 199658092,
    "id": ""
  },
  ...
]

GET Jazzicon

Required Params: address

GET https://api.unleaded.mirshko.dev/api/jazzicon?address=0x7be8076f4ea4a4ad08075c2508e481d6c946d12b

# Response

image/svg+xml