Skip to content

useSimulateFinalizeWithdrawalTransaction

Simulates finalizing a withdrawal transaction.

tsx
import { useSimulateFinalizeWithdrawalTransaction } from 'opstack-kit'

function App() {
  const result = useSimulateFinalizeWithdrawalTransaction({
    args: {
      withdrawalTxHash:
        '0x2effa77eda4fe8375ac01ad2961b4029435a085b2801dcf188ad788b840e7406',
    },
    l2ChainId: 11155420,
  })
}

Parameters

args

  • withdrawalTxHash

    Hash

    The L2 transaction hash of the withdrawal initiation.

l2ChainId

number

The chain ID of the chain you want to withdraw from.

Released under the MIT License.