[bug]: MintAsset
returns the entire MintingBatch
, not just the currently minted PendingAsset
#1201
Labels
MintAsset
returns the entire MintingBatch
, not just the currently minted PendingAsset
#1201
The response of
MintAsset
(https://lightning.engineering/api-docs/api/taproot-assets/mint/mint-asset/index.html) is aMintAssetResponse
object that contains one field,pending_batch
which contains the entireMintingBatch
and not just the currently mintedPendingAsset
. Therefor, we have no idea what asset we just minted if there are more than onePendingAsset
and the pending assets have the samename
. Also, we get in the response all pending assets from the batch this newly minted asset is a part of, which is a bit confusing and does not seem like it is data we should expect when minting an asset (I'm not sure why other assets in the batch are relevant to be included in the response when we never asked for them).I think
MintAsset
should only return aPendingAsset
object for the currently minted asset. Also, I think thePendingAsset
object should include abatch_key
so that we can then find theMintingBatch
this asset is part of using theListBatches
RPC (https://lightning.engineering/api-docs/api/taproot-assets/mint/list-batches/index.html), if we want to. UsingListBatches
is a more intentional way to request information on pending batches than just automatically sending as part of a response toMintAsset
.The text was updated successfully, but these errors were encountered: