Skip to content

Latest commit

 

History

History
131 lines (96 loc) · 3.68 KB

File metadata and controls

131 lines (96 loc) · 3.68 KB

Chainlink External Adapter for JPEG'd

2.1.33 v2

Query NFT collection values from the JPEG'd API.

Base URL https://jpegapi.com

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

Environment Variables

Required? Name Description Type Options Default
API_KEY An API key provided by the JPEG'd team string

Data Provider Rate Limits

Name Requests/credits per second Requests/credits per minute Requests/credits per hour Note
default 12

Input Parameters

Every EA supports base input parameters from this list

Required? Name Description Type Options Default
endpoint The endpoint to use string collections, punks punks

Punks Endpoint

Queries JPEG'd API for the value of a floor Cryptopunk at the requested block.

punks is the only supported name for this endpoint.

Input Params

Required? Name Aliases Description Type Options Default Depends On Not Valid With
block blockNum, blockNumber The block number for which information is being queried latest

Example

Request:

{
  "id": "1",
  "data": {
    "block": 14000000,
    "endpoint": "punks"
  },
  "debug": {
    "cacheKey": "PvrAVfL2Y0xJVTWwBXhNjo/cES0="
  },
  "rateLimitMaxAge": 5555
}

Response:

{
  "jobRunID": "1",
  "data": {
    "success": true,
    "block": 14000000,
    "value": 14000000,
    "result": 14000000
  },
  "result": 14000000,
  "statusCode": 200,
  "providerStatusCode": 200
}

Collections Endpoint

collections is the only supported name for this endpoint.

Input Params

Required? Name Aliases Description Type Options Default Depends On Not Valid With
collection The Opensea slug of the collection being requested string

Example

Request:

{
  "id": "1",
  "data": {
    "collection": "jpeg-cards",
    "endpoint": "collections"
  },
  "debug": {
    "cacheKey": "dM2Oy9A0fH8AvAgwbP9dYa2IxNk="
  },
  "rateLimitMaxAge": 11111
}

Response:

{
  "jobRunID": "1",
  "data": {
    "success": true,
    "block": 14000000,
    "value": 69000000,
    "result": 69000000
  },
  "result": 69000000,
  "statusCode": 200,
  "providerStatusCode": 200
}

MIT License