Allows to call a contract method as a view function.


Supported on NEAR (mainnet) only.


  • request_type- string - The type of request i.e call_function
  • finality- string - The assurance that the transaction cannot be altered, reversed, or canceled after they are completed. For finality=final, it means that it has been validated on at least 66% of the nodes in the network and for finality=optimistic, it uses the latest block recorded on the node that responded to the query passed
  • block_id- int/string - The block id, it could be either block number or block hash
  • account_id- string - The id of the account associcated with the transaction
  • method_name- string - The name of the method. For example: get_owner_id
  • args_base64- string - The method arguments encoded in base64

Note: You can only use one parameter, either finality or block_id. The block_id param can take either the block number or the block hash as an argument.


  • block_height- The height of the block this transactions was associated with
  • block_hash- The hash of the block this transaction was associated with
  • logs- Logs for the application being executed by this transaction

API Endpoint

The format of a Near API endpoint is

Here is an example:



curl https://open-platform.nodereal.io/{{apiKey}}/near/ \
--request POST \
--header "Content-Type: application/json" \
--data '{"method": "query","params": {"request_type": "call_function", "finality": "final", "account_id": "account id", "method_name": "get_account", "args_base64": "e30="},"id":1,"jsonrpc":"2.0"}'