Skip to main content
POST
https://0xcord.com
/
api
/
chainlinkFunctions
/
runFunction
Run Chainlink Functions
curl --request POST \
  --url https://0xcord.com/api/chainlinkFunctions/runFunction \
  --header 'Authorization: <api-key>'
{
  "data": {
    "success": true,
    "requestId": "<string>",
    "result": "<string>",
    "parsedResult": "<string>",
    "err": "<string>",
    "url": "<string>"
  }
}

Params

network
string
required
The blockchain network you want to run the function on
source
string
required
The source code of the function you want to run
args
array
default:"[]"
The arguments for the function, passed as an array of strings
returnType
string
default:"string"
The return type of the function, necessary to decode the result. Can be “string”, “uint256”, or “int256”

Response

data
object
success
boolean
Indicates whether the request was successful
requestId
string
The unique request ID assigned by Chainlink
result
string
The result of the function call, encoded as a hexadecimal string
parsedResult
string
The parsed result of the function call, decoded based on the return type
err
string
The error message, if any
url
string
The URL to the transaction details on the blockchain explorer

Chainlink Functions Tutorial

Learn how to integrate Chainlink Functions with 0xCord