Protocol Documentation
Table of Contents
-
-
Scalar Value Types
centerchain/nft/v1/nft.proto
ClassData
| Field | Type | Label | Description |
|---|---|---|---|
| product_ref | string |
ClassMeta
| Field | Type | Label | Description |
|---|---|---|---|
| class_id | string | ||
| issuer | string | ||
| product_ref | string | ||
| restricted | bool | ||
| token_metadata_immutable | bool |
ClassSequence
| Field | Type | Label | Description |
|---|---|---|---|
| class_id | string | ||
| sequence | uint64 |
GenesisState
| Field | Type | Label | Description |
|---|---|---|---|
| params | Params | ||
| classes | ClassMeta | repeated | |
| sequences | ClassSequence | repeated | |
| locks | NFTLock | repeated |
MsgBurnNFT
| Field | Type | Label | Description |
|---|---|---|---|
| sender | string | ||
| class_id | string | ||
| token_id | string |
MsgBurnNFTResponse
MsgChangeClassIssuer
| Field | Type | Label | Description |
|---|---|---|---|
| authority | string | ||
| class_id | string | ||
| new_issuer | string |
MsgChangeClassIssuerResponse
MsgCreateClass
| Field | Type | Label | Description |
|---|---|---|---|
| sender | string | ||
| class_id | string | ||
| name | string | ||
| symbol | string | ||
| description | string | ||
| uri | string | ||
| uri_hash | string | ||
| restricted | bool | ||
| token_metadata_immutable | bool |
MsgCreateClassResponse
MsgMintNFT
| Field | Type | Label | Description |
|---|---|---|---|
| sender | string | ||
| class_id | string | ||
| to | string | ||
| uri | string | ||
| uri_hash | string |
MsgMintNFTResponse
| Field | Type | Label | Description |
|---|---|---|---|
| token_id | string |
MsgSetNFTMetadata
| Field | Type | Label | Description |
|---|---|---|---|
| sender | string | ||
| class_id | string | ||
| token_id | string | ||
| uri | string | ||
| uri_hash | string |
MsgSetNFTMetadataResponse
NFTData
| Field | Type | Label | Description |
|---|---|---|---|
| product_ref | string |
NFTLock
| Field | Type | Label | Description |
|---|---|---|---|
| class_id | string | ||
| token_id | string | ||
| order_id | string | ||
| holder | string |
Params
| Field | Type | Label | Description |
|---|---|---|---|
| class_creation_fee | cosmos.base.v1beta1.Coin | repeated | |
| class_creation_gas_consume | uint64 |
QueryClassDetailRequest
| Field | Type | Label | Description |
|---|---|---|---|
| class_id | string | ||
| pagination | cosmos.base.query.v1beta1.PageRequest |
QueryClassDetailResponse
| Field | Type | Label | Description |
|---|---|---|---|
| class | ClassMeta | ||
| total_supply | uint64 | ||
| holder_count | uint64 | DEPRECATED: no longer computed on-chain. It previously required an unbounded scan of every token in the class and is now always 0. Use the paginated tokens / TokensByClass, or an off-chain indexer, for holder counts. Field number is preserved for wire compatibility. | |
| tokens | TokenSummary | repeated | |
| pagination | cosmos.base.query.v1beta1.PageResponse |
QueryClassIssuerRequest
| Field | Type | Label | Description |
|---|---|---|---|
| class_id | string |
QueryClassIssuerResponse
| Field | Type | Label | Description |
|---|---|---|---|
| class | ClassMeta |
QueryClassesByIssuerRequest
| Field | Type | Label | Description |
|---|---|---|---|
| issuer | string | ||
| pagination | cosmos.base.query.v1beta1.PageRequest |
QueryClassesByIssuerResponse
| Field | Type | Label | Description |
|---|---|---|---|
| classes | ClassMeta | repeated | |
| pagination | cosmos.base.query.v1beta1.PageResponse |
QueryNFTLockRequest
| Field | Type | Label | Description |
|---|---|---|---|
| class_id | string | ||
| token_id | string |
QueryNFTLockResponse
| Field | Type | Label | Description |
|---|---|---|---|
| locked | bool | ||
| lock | NFTLock |
QueryParamsRequest
QueryParamsResponse
| Field | Type | Label | Description |
|---|---|---|---|
| params | Params |
QueryTokensByClassRequest
| Field | Type | Label | Description |
|---|---|---|---|
| class_id | string | ||
| pagination | cosmos.base.query.v1beta1.PageRequest |
QueryTokensByClassResponse
| Field | Type | Label | Description |
|---|---|---|---|
| tokens | TokenSummary | repeated | |
| pagination | cosmos.base.query.v1beta1.PageResponse |
QueryTokensByOwnerRequest
| Field | Type | Label | Description |
|---|---|---|---|
| owner | string | ||
| pagination | cosmos.base.query.v1beta1.PageRequest |
QueryTokensByOwnerResponse
| Field | Type | Label | Description |
|---|---|---|---|
| tokens | TokenSummary | repeated | |
| pagination | cosmos.base.query.v1beta1.PageResponse |
TokenSummary
| Field | Type | Label | Description |
|---|---|---|---|
| class_id | string | ||
| token_id | string | ||
| owner | string | ||
| uri | string | ||
| uri_hash | string |
Msg
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| CreateClass | MsgCreateClass | MsgCreateClassResponse | |
| MintNFT | MsgMintNFT | MsgMintNFTResponse | |
| BurnNFT | MsgBurnNFT | MsgBurnNFTResponse | |
| SetNFTMetadata | MsgSetNFTMetadata | MsgSetNFTMetadataResponse | |
| ChangeClassIssuer | MsgChangeClassIssuer | MsgChangeClassIssuerResponse |
Query
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| Params | QueryParamsRequest | QueryParamsResponse | |
| ClassIssuer | QueryClassIssuerRequest | QueryClassIssuerResponse | class_id can contain '/', so every query binds class_id (and other identifiers) as a query parameter instead of a path segment. |
| NFTLock | QueryNFTLockRequest | QueryNFTLockResponse | |
| ClassesByIssuer | QueryClassesByIssuerRequest | QueryClassesByIssuerResponse | |
| TokensByClass | QueryTokensByClassRequest | QueryTokensByClassResponse | |
| TokensByOwner | QueryTokensByOwnerRequest | QueryTokensByOwnerResponse | |
| ClassDetail | QueryClassDetailRequest | QueryClassDetailResponse |