Home

Get the contract metadata for the metadata key

POST
https://stacks.nownodes.io/v2/clarity/metadata/{contract_address}/{contract_name}/{clarity_metadata_key}

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Attempt to fetch the metadata of a contract. The contract is identified with [Contract Address] and [Contract Name] in the URL path. The metadata key is identified with [Clarity Metadata Key].

In the response, data is formatted as JSON.

Parameters

contract_addressstringrequiredpath

Stacks address

contract_namestringrequiredpath

Contract name

clarity_metadata_keystringrequiredpath

Metadata key

tipstringquery

The Stacks chain tip to query from. If tip == latest, the query will be run from the latest known tip (includes unconfirmed state).

Response

200OK

Success

400Bad Request

Failed to retrieve constant value from contract