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: 1000000nimport { Account, createClient } from 'viem/tempo'
export const client = createClient({
account: Account.fromSecp256k1('0x...'),
})Return Type
type ReturnType = bigintReturns the blocked amount attributed to the receipt.
Parameters
receipt
- Type:
Hex
The encoded claim receipt (the witness emitted by a TransferBlocked event).