Skip to content

Latest commit

 

History

History
72 lines (52 loc) · 3.42 KB

File metadata and controls

72 lines (52 loc) · 3.42 KB

Chainlink External Adapter for View-Function

1.1.34

External adapter for executing contract function and returning the result

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

Environment Variables

Required? Name Description Type Options Default
ETHEREUM_RPC_URL RPC URL of a Mainnet ETH node string
RPC_URL A fallback RPC URL of a Mainnet ETH node string

Input Parameters

Every EA supports base input parameters from this list

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

Endpoints Endpoint

function is the only supported name for this endpoint.

Input Params

Required? Name Aliases Description Type Options Default Depends On Not Valid With
signature function Function signature. Should be formatted as human readable ABI
address contract Address of the contract string
inputParams Array of function parameters in order array

Example

Request:

{
  "id": "1",
  "data": {
    "endpoint": "function",
    "signature": "function symbol() view returns (string)",
    "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7"
  },
  "debug": {
    "cacheKey": "i+gWrJZw68WU1SlaR+u5dJb+fbA="
  }
}

Response:

{
  "jobRunID": "1",
  "data": {
    "result": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000045553445400000000000000000000000000000000000000000000000000000000"
  },
  "result": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000045553445400000000000000000000000000000000000000000000000000000000",
  "statusCode": 200,
  "providerStatusCode": 200
}

MIT License