Smart Contracts
Standard Stacks address (e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0).
Must be 28-41 characters long using Stacks c32check format.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^S[PTMN][0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26,39}$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.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$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)
latestPattern: ^(latest|[0-9a-f]{64})?$Contract interface
The interface of a Clarity smart contract.
Stacks epoch identifier (e.g., "Epoch30").
Clarity language version used by this contract.
Bad request
Not found
Internal Server Error
Get specific data-map inside a contract
Standard Stacks address (e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0).
Must be 28-41 characters long using Stacks c32check format.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^S[PTMN][0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26,39}$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.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$A valid Clarity name. Must either:
- Start with a letter and contain only letters, numbers, and [-_!?+<>=/*]
- Be exactly one of the special characters: - + = * /
- Be a comparison operator: < > <= >=
^[a-zA-Z]([a-zA-Z0-9]|[-_!?+<>=/*])*$|^[-+=/*]$|^[<>]=?$Controls MARF proof inclusion in response. Set to 1 (default) to include proof, 0 to exclude. Invalid values default to 0 (no proof).
1Example: 1Possible values: 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)
latestPattern: ^(latest|[0-9a-f]{64})?$Hex-encoded Clarity value (e.g. "0x0100000000000000000000000000000001")
0x0100000000000000000000000000000001Pattern: ^(0x)?([0-9a-fA-F]{2})+$Success
Response to a GET request for Clarity Data/MARF/MapEntry value
Hex-encoded 0x prefixed string of the MARF value
^0x[0-9a-f]+$Hex-encoded 0x prefixed string of the Merkle proof for the data. Empty string if proof not requested.
^(0x[0-9a-f]+)?$Bad request
Not found
Internal Server Error
Standard Stacks address (e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0).
Must be 28-41 characters long using Stacks c32check format.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^S[PTMN][0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26,39}$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.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$Controls MARF proof inclusion in response. Set to 1 (default) to include proof, 0 to exclude. Invalid values default to 0 (no proof).
1Example: 1Possible values: 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)
latestPattern: ^(latest|[0-9a-f]{64})?$Success
GET request to get contract source
Block height at which the contract was published (32-bit unsigned integer)
Hex-encoded 0x prefixed string of the Merkle proof for the contract source
^0x[0-9a-f]+$Bad request
Not found
Internal Server Error
Call read-only function
Standard Stacks address (e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0).
Must be 28-41 characters long using Stacks c32check format.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^S[PTMN][0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26,39}$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.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$A valid Clarity name. Must either:
- Start with a letter and contain only letters, numbers, and [-_!?+<>=/*]
- Be exactly one of the special characters: - + = * /
- Be a comparison operator: < > <= >=
^[a-zA-Z]([a-zA-Z0-9]|[-_!?+<>=/*])*$|^[-+=/*]$|^[<>]=?$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)
latestPattern: ^(latest|[0-9a-f]{64})?$Describes representation of a Type-0 Stacks 2.0 transaction. https://github.com/stacksgov/sips/blob/main/sips/sip-005/sip-005-blocks-and-transactions.md#type-0-transferring-an-asset
The simulated tx-sender.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^S[PTMN][0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26,39}$The simulated sponsor address.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^S[PTMN][0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26,39}(\.[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127})?$An array of hex serialized Clarity values
Function executed successfully
The result of a read-only function call.
Bad request
Not found
Internal Server Error
Call read-only function in fast mode (no cost and memory tracking)
Plain-text secret value that must exactly equal the node's
configured password, which is set as connection_options.auth_token
in the node's configuration file.
Standard Stacks address (e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0).
Must be 28-41 characters long using Stacks c32check format.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^S[PTMN][0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26,39}$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.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$A valid Clarity name. Must either:
- Start with a letter and contain only letters, numbers, and [-_!?+<>=/*]
- Be exactly one of the special characters: - + = * /
- Be a comparison operator: < > <= >=
^[a-zA-Z]([a-zA-Z0-9]|[-_!?+<>=/*])*$|^[-+=/*]$|^[<>]=?$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)
latestPattern: ^(latest|[0-9a-f]{64})?$Describes representation of a Type-0 Stacks 2.0 transaction. https://github.com/stacksgov/sips/blob/main/sips/sip-005/sip-005-blocks-and-transactions.md#type-0-transferring-an-asset
The simulated tx-sender.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^S[PTMN][0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26,39}$The simulated sponsor address.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^S[PTMN][0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26,39}(\.[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127})?$An array of hex serialized Clarity values
Function executed successfully
The result of a read-only function call.
Bad request
Unauthorized. Invalid or missing authentication token.
Not found
Timeout
Internal Server Error
Get trait implementation details
Standard Stacks address (e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0).
Must be 28-41 characters long using Stacks c32check format.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^S[PTMN][0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26,39}$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.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$Stacks address of the trait-defining contract.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^S[PTMN][0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26,39}$Contract name of the trait-defining contract.
some-traitPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$A valid Clarity name. Must either:
- Start with a letter and contain only letters, numbers, and [-_!?+<>=/*]
- Be exactly one of the special characters: - + = * /
- Be a comparison operator: < > <= >=
some-traitPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_!?+<>=/*])*$|^[-+=/*]$|^[<>]=?$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)
latestPattern: ^(latest|[0-9a-f]{64})?$Success
GET request to get trait implementation information
Bad request
Not found
The 64-character hex-encoded hash of the MARF key.
^[0-9a-f]{64}$Controls MARF proof inclusion in response. Set to 1 (default) to include proof, 0 to exclude. Invalid values default to 0 (no proof).
1Example: 1Possible values: 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)
latestPattern: ^(latest|[0-9a-f]{64})?$Success
Response to a GET request for Clarity Data/MARF/MapEntry value
Hex-encoded 0x prefixed string of the MARF value
^0x[0-9a-f]+$Hex-encoded 0x prefixed string of the Merkle proof for the data. Empty string if proof not requested.
^(0x[0-9a-f]+)?$Bad request
Not found
Get the contract metadata for the metadata key
Standard Stacks address (e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0).
Must be 28-41 characters long using Stacks c32check format.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^S[PTMN][0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26,39}$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.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$Metadata key. Must be either:
- "analysis" for contract analysis data
- "vm-metadata::N::TYPE" where N is the epoch (1-2 digits) and TYPE is one of: contract, contract-size, contract-src, contract-data-size, or a valid Clarity name
analysisPattern: ^(analysis)|(vm-metadata::\d{1,2}::(contract|contract-size|contract-src|contract-data-size|[a-zA-Z]([a-zA-Z0-9]|[-_!?+<>=/*])*))$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)
latestPattern: ^(latest|[0-9a-f]{64})?$Success
Response of get clarity metadata request
Metadata value
Bad request
Not found
Internal Server Error
Get the value of a constant inside a contract
Standard Stacks address (e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0).
Must be 28-41 characters long using Stacks c32check format.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^S[PTMN][0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26,39}$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.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$A valid Clarity name. Must either:
- Start with a letter and contain only letters, numbers, and [-_!?+<>=/*]
- Be exactly one of the special characters: - + = * /
- Be a comparison operator: < > <= >=
^[a-zA-Z]([a-zA-Z0-9]|[-_!?+<>=/*])*$|^[-+=/*]$|^[<>]=?$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)
latestPattern: ^(latest|[0-9a-f]{64})?$Success
Response of get constant val request
Hex-encoded 0x prefixed string of clarity value.
^0x[0-9a-f]+$Bad request
Not found
Internal Server Error
Standard Stacks address (standard principal, not contract principal). Must be 28-41 characters long using Stacks c32check format.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^S[PTMN][0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26,39}$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.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$A valid Clarity name. Must either:
- Start with a letter and contain only letters, numbers, and [-_!?+<>=/*]
- Be exactly one of the special characters: - + = * /
- Be a comparison operator: < > <= >=
^[a-zA-Z]([a-zA-Z0-9]|[-_!?+<>=/*])*$|^[-+=/*]$|^[<>]=?$Controls MARF proof inclusion in response. Set to 1 (default) to include proof, 0 to exclude. Invalid values default to 0 (no proof).
1Example: 1Possible values: 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)
latestPattern: ^(latest|[0-9a-f]{64})?$The data variable value
Response to a GET request for Clarity Data/MARF/MapEntry value
Hex-encoded 0x prefixed string of the MARF value
^0x[0-9a-f]+$Hex-encoded 0x prefixed string of the Merkle proof for the data. Empty string if proof not requested.
^(0x[0-9a-f]+)?$Bad request
Not found
Last updated
Was this helpful?