---
title: "Execute view function of a module"
method: POST
path: "/view"
tags: ["View"]
---

# Execute view function of a module

`POST /view`

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_version` string, uint64 — 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.

## Request body

- ViewRequest — View request for the Move View Function API
  - `function` string, required — 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` MoveType[], required — Type arguments of the function
  - `arguments` unknown[], required — Arguments of the function
    - unknown

## Response `200`

- MoveValue[]

## Other responses

- `400`
- `403`
- `404`
- `410`
- `500`
- `503`

## Changes

- **2026-03-23** `10ecd1005697` — 6 warning
  - added the new `rate_limited` enum value to the `error_code` response property for the response status `400`
  - added the new `rate_limited` enum value to the `error_code` response property for the response status `403`
  - added the new `rate_limited` enum value to the `error_code` response property for the response status `404`
  - added the new `rate_limited` enum value to the `error_code` response property for the response status `410`
  - …2 more
- **2025-10-14** `5510dfe434b5` — 1 warning, 1 info
  - changed the pattern of the request property `type_arguments/items/` from `^(bool|u8|u64|u128|address|signer|vector<.+>|0x[0-9a-zA-Z:_<, >]+)$` to `^(bool|u8|u16|u32|u64|u128|u256|i8|i16|i32|i64|i128|i256|address|signer|vector<.+>|0x[0-9a-zA-Z:_<, >]+)$`
  - added `#/components/schemas/I64, #/components/schemas/I128, #/components/schemas/I256, subschema #7, subschema #8, subschema #9` to the `items/` response property `anyOf` list for the response status `200`
- …earlier changes not shown

[Full history](https://skmtc.dev/aptoslabs/apis/aptos-node-api/changes/view/post.md)

---

[API](https://skmtc.dev/aptoslabs/apis/aptos-node-api.md) · [All operations](https://skmtc.dev/aptoslabs/apis/aptos-node-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aptoslabs/aptos-node-api/revisions/4a94534afca7/schema)
