fetch
Fetch a specific mail.
Usage
const receiver = '0x...';
const mailIndex = 1n;
const receivedEnvelope = await mail.fetch(receiver, mailIndex);Returns
Promise<ReceivedEnvelope>
A promise that resolves to the received mail Envelope.
Parameters
receiver
Type
Address
The mail receiver's address.
mailIndex
Type
bigint
The index of the mail to be fetched.
Last updated
