SDK
crossbell.js
Contract API
Note
Delete Note

Delete Note

A note can be deleted by the owner.

deleteNote

Deletes a note.

deleteNote(characterId: BigNumberish, noteId: BigNumberish, overrides?: Overrides): Promise<Result<undefined, true>>

Usage

contract.deleteNote(
  42, // characterId
  5, // noteId
)
⚠️

This only changes the note's deleted property to true. It can't really be deleted from the blockchain.

In fact, it is not possible to delete a note from the blockchain; the only feasible option is to "hide" it in a contract as so, based on the convention.

Parameters

characterId

  • Type: BigNumberish

The ID of the character.

noteId

  • Type: BigNumberish

The ID of the note.

Returns

interface Returns {
  transactionHash: string
}