ts-algochat
    Preparing search index...

    Class MailboxRouterTransport

    Transport for the raven router mailbox contract.

    All methods build, sign, and submit Algorand transaction groups through the injected algod client. Nothing is sent over the network at construction time, and validation happens before any network call.

    Index
    appAddress: string

    Escrow address of the router application (MBR payments go here).

    appId: number | bigint

    Application id of the router contract this transport talks to.

    • Claims a mailbox by revealing the msg key for its counter. Any key holder may burn; the contract refunds the depositor's MBR minus the inner-txn fee. Idempotent: burning an absent mailbox is a no-op.

      Parameters

      • account: Account

        The claiming account (pays the outer call fee)

      • mailboxId: Uint8Array

        32-byte box name

      • msgKey: Uint8Array

        32-byte preimage proving knowledge of the view secret

      • options: MailboxSubmitOptions = {}

        Submission options

      Returns Promise<MailboxTxnResult>

    • Deposits one envelope into a mailbox: an atomic [payment, app-call] group where the payment funds exactly the box MBR.

      Parameters

      • account: Account

        The depositor (pays the MBR; may reclaim after TTL)

      • viewSecret: Uint8Array

        32-byte secret shared with the recipient

      • counter: number

        uint32 rotation counter (advance per message)

      • envelope: Uint8Array

        1..2048 opaque envelope bytes

      • options: MailboxSubmitOptions = {}

        Submission options

      Returns Promise<MailboxSendResult>