package tezos-protocol-013-PtJakart

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

The metadata associated to an address.

val get : t -> address_index -> metadata option m

get ctxt idx returns the current metadata associated to the address indexed by idx.

val incr_counter : t -> address_index -> t m

incr_counter ctxt idx increments the counter of the address indexed by idx.

This function can fail with Counter_overflow iff the counter has reached the Int64.max_int limit.

This function can fail with Unknown_address_index if idx has not been associated with a layer-2 address already.

init_with_public_key ctxt idx pk initializes the metadata associated to the address indexed by idx.

This can fails with Metadata_already_initialized if this function has already been called with idx.