Views

Get contract views

get

Returns all views of the specified contract.

Path parameters
addressstringRequired

Contract address (starting with KT)

Query parameters
jsonbooleanOptional

Include parameter and return types in human-readable JSON format

Default: true
michelinebooleanOptional

Include parameter and return types in micheline format

Default: false
michelsonbooleanOptional

Include parameter and return types in michelson format

Default: false
Responses
200Success
application/json
get
GET /v1/contracts/{address}/views HTTP/1.1
Host: xtz-index.nownodes.io
Accept: */*
200Success
[
  {
    "name": "text",
    "jsonParameterType": null,
    "jsonReturnType": null,
    "michelineParameterType": {
      "type": 0
    },
    "michelineReturnType": {
      "type": 0
    },
    "michelsonParameterType": "text",
    "michelsonReturnType": "text"
  }
]

Get view by name

get

Returns contract view with specified name.

Path parameters
addressstringRequired

Contract address (starting with KT)

namestringRequired

View name

Query parameters
jsonbooleanOptional

Include parameter and return types in human-readable JSON format

Default: true
michelinebooleanOptional

Include parameter and return types in micheline format

Default: false
michelsonbooleanOptional

Include parameter and return types in michelson format

Default: false
Responses
200Success
application/json
get
GET /v1/contracts/{address}/views/{name} HTTP/1.1
Host: xtz-index.nownodes.io
Accept: */*
200Success
{
  "name": "text",
  "jsonParameterType": null,
  "jsonReturnType": null,
  "michelineParameterType": {
    "type": 0
  },
  "michelineReturnType": {
    "type": 0
  },
  "michelsonParameterType": "text",
  "michelsonReturnType": "text"
}