Set Asset Metadata

{
  "name": "set_asset_metadata",
  "desc": "Set D-ASA metadata",
  "readonly": false,
  "args": [
    {
      "type": "byte[]",
      "name": "metadata",
      "desc": "Asset metadata"
    }
  ],
  "returns": {
    "type": "uint64",
    "desc": "Timestamp of the set metadata"
  },
  "errors": [
    {
      "code": "UNAUTHORIZED",
      "message": "Not authorized"
    },
    {
      "code": "DEFAULTED",
      "message": "Defaulted"
    },
    {
      "code": "SUSPENDED",
      "message": "Asset operations are suspended"
    }
  ]
}

The call MUST fail with the UNAUTHORIZED error code if not called by an authorized caller.

The call MUST fail with the DEFAULTED error code if the asset is defaulted.

The call MAY fail with the SUSPENDED error code if the asset is suspended.