Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 3.18 KB

File metadata and controls

57 lines (39 loc) · 3.18 KB

VIEW_FUNCTION_MULTI_CHAIN

v3

Environment Variables

Required? Name Description Type Options Default
{NETWORK}_RPC_URL RPC url for a NETWORK. NETWORK is the value of network input param string
{NETWORK}_CHAIN_ID Chain id for a NETWORK. NETWORK is the value of network input param number
BACKGROUND_EXECUTE_MS The amount of time the background execute should sleep before performing the next request number 10000

Data Provider Rate Limits

There are no rate limits for this adapter.


Input Parameters

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

Function 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 string
address contract Address of the contract string
inputParams Array of function parameters in order string[]
network RPC network name string

Example

Request:

{
  "data": {
    "endpoint": "function",
    "signature": "function latestAnswer() view returns (int256)",
    "address": "0x779877A7B0D9E8603169DdbD7836e478b4624789",
    "network": "ETHEREUM_GOERLI"
  }
}

MIT License