Skip to main content

/functions/rest/v1/functions/{id}/call REST Method

Calls a Function.

Updated on
Oct 10, 2024

/functions/rest/v1/functions/{id}/call REST Method

Path Parameters

id
string
REQUIRED
Function ID

Query Parameters

result_only
boolean
Set this parameter to true to return only the function's result. If you want to return all the activation details, omit this parameter.

Body Parameters

network
string
The network to pass into this function. ENUM: "arbitrum-mainnet", "arbitrum-sepolia", "avalanche-fuji", "avalanche-mainnet", "base-mainnet", "base-sepolia", "bera-bartio", "blast-mainnet", "blast-sepolia", "bnbchain-mainnet", "bnbchain-testnet", "celo-mainnet", "cyber-mainnet", "cycber-sepolia", "ethereum-holesky", "ethereum-mainnet", "ethereum-sepolia", "fantom-mainnet", "fraxtal-mainnet", "gnosis-mainnet", "imx-mainnet", "imx-testnet", "mantle-mainnet", "mantle-sepolia", "mode-mainnet", "nova-mainnet", "optimism-mainnet", "optimism-sepolia", "polygon-mainnet", "polygon-amoy", "scroll-mainnet", "scroll-testnet", "solana-devnet", "solana-mainnet", "solana-testnet", "tron-mainnet", "xai-mainnet", "xai-sepolia", "zkevm-mainnet", "zksync-mainnet", "zksync-sepolia", "zora-mainnet"
dataset
string
The dataset to pass into this function. ENUM: "block", "block_with_receipts", "receipts", "logs", "transactions", "trace_blocks", "debug_traces", "block_with_receipts_debug_trace", "block_with_receipts_trace_block", "programs_with_logs"
block_number
integer
The block number to pass into this function
user_data
object
A json object containing key-value pairs of data to pass into this function. Example: "key": "value"

Returns

id
string
The ID of the function activation.
created_at
string
The timestamp when the function was created.
updated_at
string
The timestamp when the function was updated.
name
string
The name of the function.
dataset
string
The name of the dataset.
network
string
The name of the network.
execution
object
The response returned by the function which contains the following fields:
result
object
It contains the outcome of the function execution.
size
integer
The size in bytes of the result returned by the function.
memory
integer
The memory allocated to execute function.
duration
integer
The duration of function execution.
status_code
integer
The status code of the function activation.
logs
array
The logs generated by the function.
user_data
object
The user data passed into the function.
block_number
integer
The block number passed into the function.
activation_source
string
The source of the function activation.
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free