Skip to main content
Version: Endpoint V1 Docs

StoredPayload Detection

Find the hidden reason for a StoredPayload

What does a StoredPayload look like on chain & How to deal with it

If you see a transaction like this, then you may have a StoredPayload:

https://optimistic.etherscan.io/tx/0xd3229bfe9bb64425eef6457e1198e7c2d96c3abc1721e2b0846459a291d1ff60

alt text See the orange text? Although the transaction may say it succeeded, LayerZero may have a StoredPayload blocking the queue of message until dealt with.

Go to the "Logs" tab to see the reason

alt text If there is no reason string, it could be out of gas. If there is a reason copy the bytes into a hex-to-string converter to see the reason (example below):

alt text

OK! Thats some helpful information - Although we ran into a StoredPayload, we now know the reason: LzReceiver: invalid source sending contract

The error reminds us that we must setTrustedRemote first on the destination to allow inbound communication from the source sending User Application contract.