async ReplaceUserMetadata({metadataSubtree="/", metadata={}}) {
    const libraryId = this.client.contentSpaceLibraryId;
    const objectId = Utils.AddressToObjectId(await this.WalletAddress());

    const editRequest = await this.client.EditContentObject({libraryId, objectId});

    await this.client.ReplaceMetadata({libraryId, objectId, writeToken: editRequest.write_token, metadataSubtree, metadata});
    await this.client.FinalizeContentObject({libraryId, objectId, writeToken: editRequest.write_token});

    this.__InvalidateCache();
  }
/**
   * Replace the current user's profile metadata
   *
   * @namedParams
   * @param {Object} metadata - New metadata
   * @param {string=} metadataSubtree - Subtree to replace - modifies root metadata if not specified
   */
Replace the current user's profile metadata
@namedParams
@param {Object} metadata - New metadata
@param {string=} metadataSubtree - Subtree to replace - modifies root metadata if not specified
Replace the current user ' s profile metadata @namedParams @param { Object } metadata - New metadata @param { string = } metadataSubtree - Subtree to replace - modifies root metadata if not specified
async ReplaceUserMetadata({metadataSubtree="/", metadata={}}) {
    const libraryId = this.client.contentSpaceLibraryId;
    const objectId = Utils.AddressToObjectId(await this.WalletAddress());
    const editRequest = await this.client.EditContentObject({libraryId, objectId});
    await this.client.ReplaceMetadata({libraryId, objectId, writeToken: editRequest.write_token, metadataSubtree, metadata});
    await this.client.FinalizeContentObject({libraryId, objectId, writeToken: editRequest.write_token});
    this.__InvalidateCache();
  }
async ReplaceUserMetadata ( { metadataSubtree = "/" , metadata = { } } ) { const libraryId = this . client . contentSpaceLibraryId ; const objectId = Utils . AddressToObjectId ( await this . WalletAddress ( ) ) ; const editRequest = await this . client . EditContentObject ( { libraryId , objectId } ) ; await this . client . ReplaceMetadata ( { libraryId , objectId , writeToken : editRequest . write_token , metadataSubtree , metadata } ) ; await this . client . FinalizeContentObject ( { libraryId , objectId , writeToken : editRequest . write_token } ) ; this . __InvalidateCache ( ) ; }
Replace the current user's profile metadata
 @namedParams
 @param {Object} metadata - New metadata
 @param {string=} metadataSubtree - Subtree to replace - modifies root metadata if not specified
Replace the current user ' s profile metadata @namedParams @param { Object } metadata - New metadata @param { string = } metadataSubtree - Subtree to replace - modifies root metadata if not specified