cncreate
Create a collection.
cname
(string): Collection name.anybody
(uint64_t): 0
: Anyone can create tokens in the collection.1
: Only the creator can create tokens.owner
(name): Owner of the collection.desc
(string): Description of the collection.cnsetowner
Transfer collection ownership.
id
(uint64_t): Collection ID.owner
(name): New owner of the collection.cnedit
Edit a collection.
id
(uint64_t): Collection ID.cname
(string): New collection name.desc
(string): New collection description.issuenft
Create an NFT.
id
(uint64_t): Collection ID.tname
(string): Token name (not unique).creatorfee
(uint64_t): Creator fee percentage for sales.url
(string): Website URL (1–1024 characters).asset_id
(uint64_t): Asset ID.freezetime
(uint64_t): Freeze time in seconds. 0
means it's available immediately.lifetime
(uint64_t): Token lifespan in seconds. 0
means perpetual. Current time + lifetime
= token expiration.immutable
(string): Non-updatable data (JSON).mutables
(string): Updatable data (JSON). Can be changed with setnftmdata
.burnnft
Burn a token.
id
(uint64_t): Token ID.setnftmdata
Update token data.
id
(uint64_t): Token ID.mutables
(string): Updatable data (JSON).stakenft
Stake a token.
id
(uint64_t): Token ID.stake
(uint64_t): Stake flag. Set to 1
.freezetime
(uint64_t): Freeze timestamp. If staking for 1 minute, set to current timestamp + 60 seconds.unstakenft
Unstake a token.
id
(uint64_t): Token ID.setnftowner
Transfer token ownership.
id
(uint64_t): Token ID.owner
(name): New token owner.sellnft
List a token for sale on the market.
id
(uint64_t): Token ID.price
(asset): Sale price in the specified token. Example: 1.0000 GFL
.token
(name): Contract for the sale. Example: eosio.token
.unsellnft
Remove a token from the market.
id
(uint64_t): Token ID.To purchase a token, transfer the specified amount to the smart contract address with the token order ID in the memo.
testaccount
gf.nft
1.0000 USDT
153
**Create a collection.** - **Parameters:** - `cname` (string): Collection name. - `anybody` (uint64_t): - `0`: Anyone can create tokens in the collecti