Call Function
call_function request type
call_function request type
Invoke a contract view method without gas or state changes — reads computed values from contract logic.
Responses from the selected endpoint appear here after you run a request.
Live response output will appear here after you run a request.
This operation accepts a JSON-RPC body over POST to /.
Required request inputs: yes
{
"jsonrpc": "2.0",
"id": "fastnear",
"method": "query",
"params": {
"request_type": "call_function",
"finality": "final",
"account_id": "contract.near",
"method_name": "get_info",
"args_base64": "e30="
}
}jsonrpc *string2.0id *stringmethod *stringqueryparams *objectaccount_id *stringNEAR account ID
args_base64 *stringBase64-encoded method arguments
method_name *stringName of the contract view method to invoke.
request_type *stringcall_functionfinality *stringBlock finality
finalnear-finaloptimisticSuccessful response
jsonrpc *string2.0id *one ofresultobjectA result returned by contract method
logs *arrayitemsstringresult *arrayitemsintegererrorobjectcodeintegermessagestringdataobject