Skip to content

getWithdrawalHashStorageSlot

Computes the withdrawal hash storage slot to be used when proving a withdrawal.

Import

import { getWithdrawalHashStorageSlot } from 'viem'

Usage

import { getWithdrawalHashStorageSlot } from 'viem'
 
const slot = getWithdrawalHashStorageSlot({ 
  withdrawalHash: '0xB1C3824DEF40047847145E069BF467AA67E906611B9F5EF31515338DB0AABFA2'
}) 

Returns

Hex

The storage slot.

Parameters

withdrawalHash

  • Type: Hash

Hash emitted from the L2 withdrawal MessagePassed event.

const slot = getWithdrawalHashStorageSlot({ 
  withdrawalHash: '0xB1C3824DEF40047847145E069BF467AA67E906611B9F5EF31515338DB0AABFA2'
})