Edit metadata
Builds a metadata update for an existing asset, signed by authority, which must hold its update authority.
Replaces uri and the on-chain name, sellerFeeBasisPoints and creators. Fields under extendedMetadata are stored by mallow, not on-chain. For collection and maxSupply, omit the field to leave it unchanged or send null to clear it.
For a cnft or cnft-v2, authority must be the update authority of its collection (a Token Metadata collection for cnft, a Core collection for cnft-v2), or the tree creator or delegate when it has none; owning the asset is not enough. A compressed NFT's collection can't be changed here.
Authorization
ApiKeyAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Updates an existing asset's metadata. collection and maxSupply treat an omitted field as 'leave unchanged' and an explicit null as 'clear'.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v2/tx/nft/edit" \ -H "Content-Type: application/json" \ -d '{ "authority": "string", "asset": "string", "uri": "string", "nftMetadata": { "name": "string", "sellerFeeBasisPoints": 0 }, "tokenStandard": "nft" }'{ "result": { "tx": "string", "setupTx": "string" }}Mint POST
Builds a mint, signed and paid for by authority. asset is the new asset's address: generate a fresh keypair for it and sign with it too.
Edit collection artworks POST
Builds the transactions that add assets to, or remove them from, the Core collection parentCollection, signed by authority. All four lists are applied together.