CW721 Reference
Stargaze NFT collections use CW721 contracts on the Cosmos Hub.
Instantiate
Create a new collection:
{
"name": "Collection Name",
"symbol": "SYMBOL",
"minter": "cosmos1...",
"creator": "cosmos1...",
"collection_info_extension": {
"description": "Collection description",
"image": "ipfs://...",
"external_link": "https://...",
"royalty_info": {
"payment_address": "cosmos1...",
"share": "0.05"
}
}
}Execute Messages
Transfer NFT
Send NFT (to contract)
Approve
Revoke
Approve All
Revoke All
Burn
Update Collection Info
Query Messages
Owner Of
Get the owner of a token:
NFT Info
Get token metadata:
Response:
All NFT Info
Get owner and metadata:
Tokens (by owner)
List tokens owned by an address:
All Tokens
List all tokens in collection:
Num Tokens
Get total supply:
Collection Info
Get collection metadata:
Approvals
Get approvals for a token:
All Operators
Get all operators for an owner:
Royalties
Royalties are set in the collection extension:
shareis a decimal (0.05 = 5%)Maximum royalty: 10% (0.10)
Royalties are enforced by the marketplace contract
Expiration Types
Used for approvals:
External Resources
Last updated