Get trait implementation details

RPC node

Determine whether or not a specified trait is implemented (either explicitly or implicitly) within a given contract.

GET

Parameters

Path Parameters

contract_address
REQUIRED
string Standard Stacks address (e.g. `SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0`). Must be 28-41 characters long using Stacks base58check format.
contract_name
REQUIRED
string Contract name. Must start with a letter and can contain letters, numbers, hyphens, and underscores. Maximum length is 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
trait_contract_address
REQUIRED
string Stacks address of the trait-defining contract.
trait_contract_name
REQUIRED
string Contract name of the trait-defining contract.
trait_name
REQUIRED
string

Query Parameters

tip
string Stacks chain tip to query from. Options: - (empty/omitted): Use latest anchored tip (canonical confirmed state) - `latest`: Use latest known tip including unconfirmed microblocks - `{block_id}`: Use specific block ID (64 hex characters)
Status codeDescription
200Success
400Bad request
404Not found
cURL
curl -L \
"https://api.hiro.so/v2/traits/{contract_address}/{contract_name}/{trait_contract_address}/{trait_contract_name}/{trait_name}?tip={tip}" \
-H 'Accept: application/json'
Response
{
"is_implemented": true
}

How is this guide?