deleteMail

Deletes a specific mail. This method can only be performed by the receiver of the mail.

Usage

const mailIndex = 1n;
const txResponse = await mail.deleteMail(mailIndex);

Returns

Promise<EthereumTransactionResponse>

A promise that resolves to the response from the sendTransaction method on the walletClient provided by the developer on Mail initialization.

Parameters

mailIndex

  • Type bigint

The index of the mail to be deleted.

Previous
setOpenedAt