View
View Api
Body
View request for the Move View Function API.
functionobjectRequired
type_argumentsobjectRequired
Type arguments of the function
argumentsobjectRequired
Arguments of the function
Responses
200
Result of view function
application/json
Responseone of
nullOptional
post
POST /rpc/v1/view HTTP/1.1
Host: rpc-mainnet.supra.com
Content-Type: application/json
Accept: */*
Content-Length: 50
{
"function": {},
"type_arguments": {},
"arguments": {}
}
200
Result of view function
No content
Body
View request for the Move View Function API.
functionobjectRequired
type_argumentsobjectRequired
Type arguments of the function
argumentsobjectRequired
Arguments of the function
Responses
200
Result of view function
application/json
post
POST /rpc/v2/view HTTP/1.1
Host: rpc-mainnet.supra.com
Content-Type: application/json
Accept: */*
Content-Length: 50
{
"function": {},
"type_arguments": {},
"arguments": {}
}
200
Result of view function
{
"result": [
{
"U8": 1
}
]
}
Body
View request for the Move View Function API.
functionobjectRequired
type_argumentsobjectRequired
Type arguments of the function
argumentsobjectRequired
Arguments of the function
Responses
200
Result of view function
application/json
post
POST /rpc/v3/view HTTP/1.1
Host: rpc-mainnet.supra.com
Content-Type: application/json
Accept: */*
Content-Length: 50
{
"function": {},
"type_arguments": {},
"arguments": {}
}
200
Result of view function
{
"result": [
{
"U8": 1
}
]
}