msg.sender
- Selling a nft
- Swapping an erc20
- Bidding in an auction
Overview of steps:
-
Step 1: Estimate gas needed on the Destination Chain
-
Step 2: Bridge Just-In-Time gas money from Origin to Destination chain
-
Step 3: Execute transaction/s on the Destination chain
-
Step 4 (optional): Bridge back proceeds to Origin chain
Step 1: Estimate gas needed on the Destination Chain
Step 2: Bridge Just-In-Time gas money from Origin to Destination chain
Step 3: Execute transaction/s on the Destination chain
withdraw some WETH with viem’s writeContract and wait for the transaction to complete with waitForTransactionReceipt.