Skip to content
LogoLogo

receivePolicy.getBlockedBalance

Gets the blocked balance held by the ReceivePolicyGuard for an encoded claim receipt. Learn more about transfer policies

Usage

import { client } from './viem.config'
 
const amount = await client.receivePolicy.getBlockedBalance({
  receipt: '0x...',
})
 
console.log('Blocked amount:', amount)
Blocked amount: 1000000n

Return Type

type ReturnType = bigint

Returns the blocked amount attributed to the receipt.

Parameters

receipt

  • Type: Hex

The encoded claim receipt (the witness emitted by a TransferBlocked event).