What is the BurntAmount value?

Hello, @support.

What is the BurntAmount value given by the pdestatus mintnft command of the incognito cli?

{
  Status: 1,
  BurntAmount: 100,
  NftID: 'foobar'
}
1 Like

In order to mint an NFT (i.e, pDEX access token), you have to burn an amount of PRV. This is to prevent one from creating an infinite number of NFTs. So the BurntAmount you see is the actual amount of PRV that was burnt when a new NFT was minting. Here is a brief description:

type MintNFTStatus struct {
	// Status represents the status of the transaction, and should be understood as follows:
	//	- 1: the request is accepted;
	//	- 2: the request is rejected.
	Status int `json:"Status"`

	// BurntAmount is the amount of PRV that was burned to mint this NFT.
	BurntAmount uint64 `json:"BurntAmount"`

	// NftID is the ID of the minted NFT.
	NftID string `json:"NftID"`
}```
2 Likes

Thank you. Where did you get that pice of documentation? I would like to read more.

From the go-sdk tutorial series and some RPC result docs. The backbone of the CLI is the go-sdk.

1 Like