Skip to main content

IAppURI

Thirdweb's AppURI is a contract extension for any base contracts. It lets you set a metadata URI for your contract.

Methods

appURI

function appURI() external view returns (string)

Returns the metadata URI of the contract.

Returns

NameTypeDescription
_0stringundefined

setAppURI

function setAppURI(string _uri) external nonpayable

Sets contract URI for the storefront-level metadata of the contract. Only module admin can call this function.

Parameters

NameTypeDescription
_uristringundefined

Events

AppURIUpdated

event AppURIUpdated(string prevURI, string newURI)

Emitted when the contract URI is updated.

Parameters

NameTypeDescription
prevURIstringundefined
newURIstringundefined