Skip to main content

query-{call_function} RPC Method

Allows to call a contract method as a view function.

Updated on
Oct 04, 2023

Parameters

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

Returns

block_height
integer

The height of the block this transactions was associated with

block_hash
string

The hash of the block this transaction was associated with

logs
array

Logs for the application being executed by this transaction

result
array

The result of the function call. Contains the actual response data from the contract method execution, typically as an array of integers representing the encoded return value.

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free