Aptos RPC API
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.
POST
https://aptos-mainnet.s.chainbase.online/{api-key}/v1
/
view
Query Parameters
Ledger version to get state of account
If not provided, it will be the latest version
Body
application/json
View request for the Move View Function API
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.
Type arguments of the function
Arguments of the function
Response
200 - application/json
The response is of type object[]
.