Interface

Get JSON Schema [2020-12] interface for the contract

Returns standard JSON Schema for contract storage, entrypoints, and Big_map entries.

GEThttps://xtz-index.nownodes.io/v1/contracts/{address}/interface
Path parameters
address*string

Contract address

Response
Body
storageSchemanullable any

JSON Schema of the contract storage in humanified format (as returned by API)

entrypointsnullable array of object

List of terminal entrypoints

bigMapsnullable array of object

List of currently available Big_maps

eventsnullable array of object

List of events extractable from the code ("static")

Request
const response = await fetch('https://xtz-index.nownodes.io/v1/contracts/{address}/interface', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "entrypoints": [
    {
      "name": "text"
    }
  ],
  "bigMaps": [
    {
      "path": "text",
      "name": "text"
    }
  ],
  "events": [
    {
      "tag": "text"
    }
  ]
}