Execute View Function of a Module
Execute the Move function with the given parameters and return its execution result.
The Aptos nodes prune account state history, via a configurable time window. If the requested ledger version has been pruned, the server responds with a 410.
Query parameters
ledger_versionstring · uint64OptionalExample:
A string containing a 64-bit unsigned integer.
We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
32425224034Body
View request for the Move View Function API
functionstringRequiredExample:
Entry function id is string representation of a entry function defined on-chain.
Format: {address}::{module name}::{function name}
Both module name and function name are case-sensitive.
0x1::aptos_coin::transfertype_argumentsstring[]Required
Type arguments of the function
Responses
200Success
400Error
application/json
403Error
application/json
404Error
application/json
410Error
application/json
500Error
application/json
503Error
application/json
post
/viewLast updated
Was this helpful?