Get contract package

Get a contract package by its identifier (contract package hash).

GET /contract-packages/{contract_package_hash}

This endpoint allows you to retrieve detailed information about a specific contract package using its unique identifier, the contract package hash. The response includes various properties such as owner public key, name, description, metadata, latest version contract type ID, timestamp, icon URL, and deploys number.

Query params

None

Sorting

None

Optional properties

Property
Type
Description

account_info

ContractPackage owner account info

centralized_account_info

ContractPackage centralized account info

cspr_name

string

Owner's primary CSPR.name

token_market_data

Token market data derived from indexed DEX swaps in the requested currency. It's a function includerarrow-up-right that accepts currency_id and optional dex_id arguments.

Response

ContractPackage

Example

Last updated