Skip to content

useSimulateProveWithdrawalTransaction

Simulates proving a withdrawal transaction.

tsx
import { useSimulateProveWithdrawalTransaction } from 'opstack-kit'

function App() {
  const result = useSimulateProveWithdrawalTransaction({
    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.