This adapter is built to fulfill Chainlink oracle requests.
The adapter uses the following environment variables:
URL
: A URL to a JSON-RPC (HTTP RPC) node on Conflux NetworkPRIVATE_KEY
: The private key to sign transactions with. Must have fulfillment permissions on the Oracle contract.EA_PORT
: Configure this parameter to change the EA port
address
orcfxAddress
: The oracle contract to fulfill the request ondataPrefix
orcfxDataPrefix
: The data prefix in the requestfunctionSelector
orcfxFunctionSelector
: The fulfillment function selectorresult
orvalue
: The value to fulfill the request with
node -e "require(\"dotenv\").config() && require(\"./index.js\").server()"
{
"jobRunID": "test123",
"data": {
"result": "0x560d6081e276e1c3c1e58aba722ab2848315442a196fcc89a13baa8bc7e34a78"
},
"result": "0x560d6081e276e1c3c1e58aba722ab2848315442a196fcc89a13baa8bc7e34a78",
"statusCode": 200
}