Skip to content

Latest commit

 

History

History
71 lines (51 loc) · 1.98 KB

File metadata and controls

71 lines (51 loc) · 1.98 KB

Chainlink External Adapter for POA Network gas price

1.2.36

Base URL https://gasprice.poa.network/

This document was generated automatically. Please see README Generator for more info.

Environment Variables

Required? Name Description Type Options Default
API_ENDPOINT string https://gasprice.poa.network/

Input Parameters

Every EA supports base input parameters from this list

Required? Name Description Type Options Default
endpoint The endpoint to use string gasprice gasprice

Gasprice Endpoint

gasprice is the only supported name for this endpoint.

Input Params

Required? Name Aliases Description Type Options Default Depends On Not Valid With
speed The desired speed string average, fast, slow average

Example

Request:

{
  "id": "1",
  "data": {
    "endpoint": "gasprice",
    "speed": "average"
  },
  "debug": {
    "cacheKey": "1GHxqDIBX4s/n/jRmjOhhARCCIE="
  }
}

Response:

{
  "jobRunID": "1",
  "data": {
    "average": 152.5,
    "fast": 174.5,
    "slow": 139.4,
    "result": 152500000000
  },
  "result": 152500000000,
  "statusCode": 200,
  "providerStatusCode": 200
}

MIT License