Skip to content
Alchemy Logo

/v1/view

POST
https://aptos-mainnet.g.alchemy.com/v2/docs-demo/v1/view

Executes a Move view function with the provided arguments and returns the result. The function must be marked as a view function in the Move module. If a ledger_version is specified and has been pruned, the server will respond with a 410 error.

Query Parameters

stringformat: "uint64"optional

The ledger version to use when executing the view. If not provided, the latest version is used. This is a string representing a uint64 to ensure compatibility with JavaScript.

Request Body

Responses

200

Successful execution of view function

The result of executing the view function.

Was this page helpful?