mallow docs

Edit metadata

POST
/v2/tx/nft/edit

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
x-api-key<token>

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"  }}