Skip to main content

/v1/view REST API Endpoint

Allows users to retrieve the current state of the blockchain by querying specific information without performing any modifications or transactions.

Updated on
Oct 4, 2023

/v1/view REST API Endpoint

Query Parameters

ledger_version
string
REQUIRED
The version number of the ledger associated with the function

Body Parameters

function
string
REQUIRED
The function to be called
type_arguments
string
REQUIRED
The type arguments associated with the function call
arguments
string
REQUIRED
The arguments of the function call

Returns

result
The data returned by the executed view function, providing the requested information from the blockchain in response to the query
Request
1
curl --request POST \
2
--url https://docs-demo.aptos-mainnet.quiknode.pro/v1/view \
3
--header 'Accept: application/json, application/x-bcs' \
4
--header 'Content-Type: application/json' \
5
--data '{
6
"function": "FUNCTION",
7
"type_arguments": [
8
"string"
9
],
10
"arguments": [
11
null
12
]
13
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free