Skip to main content

MetadataService

Git Source

Methods

REGISTRY

function REGISTRY() external view returns (address)

Get the registry's address.

Returns

NameTypeDescription
addressaddress of the registry

metadataURL

function metadataURL(address entity) external view returns (string value)

Get a URL with an entity's metadata.

Parameters

NameTypeDescription
entityaddressaddress of the entity

Returns

NameTypeDescription
valuestringmetadata URL of the entity

setMetadataURL

function setMetadataURL(string metadataURL) external nonpayable

Set a new metadata URL for a calling entity.

Parameters

NameTypeDescription
metadataURLstringnew metadata URL of the entity

Events

SetMetadataURL

event SetMetadataURL(address indexed entity, string metadataURL)

Emitted when a metadata URL is set for an entity.

Parameters

NameTypeDescription
entity indexedaddressaddress of the entity
metadataURLstringnew metadata URL of the entity