Call Function
call_function request type
This endpoint allows you to call a smart contract function on the NEAR blockchain.
Live Response
Responses from the selected endpoint appear here after you run a request.
Live response output will appear here after you run a request.
Request reference
application/jsonThis 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="
}
}Request schema
object
requires jsonrpc, id, method, paramsjsonrpc *string2.0id *stringmethod *stringqueryparams *objectaccount_id *stringNEAR account ID
args_base64 *stringBase64-encoded method arguments
method_name *stringrequest_type *stringcall_functionfinality *stringBlock finality
finalnear-finaloptimisticResponse reference
200 application/jsonSuccessful response
Response schema
objectJsonRpcResponse
requires jsonrpc, idjsonrpc *string2.0id *one ofstringnumber
resultobjectA result returned by contract method
logs *arrayitemsstringresult *arrayitemsintegererrorobjectcodeintegermessagestringdataobject