Start typing to search this publication.
https://crypto.news/
Open menu

Subscribe to https://crypto.news/

Get new posts delivered straight to your inbox.

How to Confirm a Wormhole NTT Transfer Completed in Code

https://crypto.news/
5 min read

Read the source transaction receipt to identify the Wormhole Native Token Transfers (NTT) message digest, then confirm completion on the destination NttManager by matching TransferRedeemed(digest), or by finding isMessageExecuted(digest) true with no active inbound queue and an increased recipient token balance.

A successful source transaction means the transfer was sent. A signed VAA means Guardians attested to its message. Neither observation tells your app that the destination recipient holds the tokens: the VAA may still await delivery, and a delivered message may enter the destination’s inbound rate-limit queue.

Supported assets can move between Monad and Ethereum through a cross-chain app. For Monad bridge transfers, checking the destination NttManager changes the status your app shows from “sent” to “received” when the tokens arrive.

What Do You Need Before Checking Destination Status?

Destination status checking starts with the source transaction hash, RPC endpoints for both EVM chains, the source and destination NttManager addresses, their Wormhole chain IDs, and viem or ethers. You also need the source Wormhole transceiver address so you can identify its message in the receipt. Keep the destination token address and recipient address ready for the final balance check.

monad-bridge.org is an option for transferring supported assets between Monad and Ethereum. In an integration that tracks such a transfer, save the source hash and the recipient’s destination token balance when monitoring begins. The hash lets you recover the message identity; the balance gives you a before value to compare with the destination result.

The transfer digest is the key for destination lookups. It is the NTT manager message digest, not the VAA’s signature digest or the source transaction hash. Where the deployed manager emits the digest version of TransferSent, decode its bytes32 value from the source receipt. Otherwise, derive the manager digest from the decoded NTT message with the matching NTT SDK or contract encoding. Also decode the Wormhole Core LogMessagePublished entry for the transceiver’s emitter address and sequence; that separate tuple identifies the VAA.

How Do You Confirm the Transfer on the Destination Chain?

Confirm the transfer by following one digest from the source receipt through the VAA lookup and into the destination manager’s logs and view calls. The Wormhole EVM NttManager reference specifies TransferRedeemed, InboundTransferQueued, getInboundQueuedTransfer, and isMessageExecuted, including the queue and redemption behavior used below.

  1. Read the source receipt. Call getTransactionReceipt with the source hash and verify its status. A reverted source transaction is failed. For a successful one, decode the NttManager TransferSent digest and the transceiver’s Wormhole message sequence. You now have a digest for destination queries and an emitter chain, emitter address, and sequence for the VAA query.

  2. Fetch the signed VAA. Query the Wormholescan API at /v1/signed_vaa/{emitterChain}/{emitterAddress}/{sequence}, using the Wormhole-formatted, 32-byte emitter address. A returned VAA shows that Guardian signatures are available. If it has not appeared, report pending and retry: Guardians sign after the source reaches the configured finality level, and signature aggregation also takes time.

  3. Search destination logs for the digest. Query the destination NttManager address for TransferRedeemed and InboundTransferQueued, filtering each event by the same digest. TransferRedeemed identifies the transaction that minted or released the tokens. InboundTransferQueued identifies a transfer accepted into the rate-limit queue; it is still awaiting release.

  4. Read current manager state. In viem, call destinationClient.readContract with the destination manager address, its ABI, functionName: 'getInboundQueuedTransfer', and args: [digest]. A nonzero txTimestamp means the queue entry remains active. Call isMessageExecuted with the same digest. Its true value alone is insufficient for an inbound transfer: the manager can mark the message executed when it queues it. Read queue state before classifying it as complete.

  5. Confirm receipt by the recipient. Once TransferRedeemed appears, or isMessageExecuted is true and the queue entry is gone, read balanceOf(recipient) on the destination token. Compare it with the saved balance and the expected transfer amount. When the balance has increased, return executed and retain the destination transaction hash as evidence. Account for other transfers to that wallet when interpreting a balance difference.

Consider an illustrative transfer with digest D, a recipient balance of 40 tokens, and an intended arrival of 10. Its VAA exists and InboundTransferQueued(D) appears, while getInboundQueuedTransfer(D) still has a timestamp. The source hash and digest stay the same, and the recipient still has 40: show queued, even if isMessageExecuted(D) is true. After the queue delay, completeInboundQueuedTransfer(D) releases that same transfer. The queue entry disappears, TransferRedeemed(D) appears, and the recipient balance becomes 50. Those changed destination observations support executed.

How Should Your App Classify Missing or Queued Results?

Your app should classify each result from source, VAA, and destination evidence, using a timeout to identify transfers that need attention. A Monad bridge integration can use four practical states:

  • Pending: The source transaction succeeded, but no signed VAA is available; or a VAA exists and the destination manager has no matching event yet within the normal monitoring window.

  • Queued: InboundTransferQueued matches the digest and getInboundQueuedTransfer still contains an active entry. Continue polling through the configured queue delay.

  • Executed: TransferRedeemed matches the digest, or isMessageExecuted is true with no active queue, and the recipient balance confirms arrival.

  • Needs-redeem: A VAA exists, no destination redemption or active queue appears, and your chosen delivery timeout has passed. Flag it for investigation or manual redemption; a timeout is an alert, not proof that the transfer failed.

Keep failed separate for a reverted source transaction or a confirmed failed destination attempt. A failed delivery attempt can be retried, so continue checking the digest before declaring the transfer irrecoverable. Poll logs from a saved block cursor or query historical logs on restart; an event watcher that starts after redemption can miss the decisive event.

How Do You Query a Transfer's Status With the Wormholescan API?

Query the Wormholescan API with the VAA’s emitter chain, emitter address, and sequence recovered from the source receipt. Its operation data can help you locate source and destination transactions, while the signed VAA endpoint tells you when the attestation is available. Use the destination NttManager for the final token-arrival decision.

What Happens When an NTT Inbound Transfer Is Rate-Limited and Queued?

The destination manager emits InboundTransferQueued(digest) and stores the transfer until its rate-limit delay expires. After that delay, completeInboundQueuedTransfer(digest) can release it and emits TransferRedeemed(digest). Poll the queue entry because message execution and token release can occur at different times.

How Long Does a Wormhole VAA Take to Be Signed?

VAA signing time depends on the source chain’s configured finality level and Guardian signature collection. Use the missing VAA as a pending state rather than inventing a fixed duration or treating the transfer as failed.

The source receipt identifies the transfer, and the VAA identifies a signed message; the destination manager establishes whether that message was queued or redeemed. Following the same digest through those stages lets your app report arrival only when destination state and the recipient’s balance support it.

Subscribe to https://crypto.news/