Skip to content
Logo

useWithdrawals

Usage

import {  } from "@cartesi/wagmi";
 
function () {
    const { ,  } = ({
        : "0x1234567890abcdef1234567890abcdef12345678",
        : 50,
        : 0,
        // accountIndex: 0n, // optional
    });
    const { : ,  } =  || {};
    // render logic
}

Filters

The hook can filter results by:

  • application: Address | string
  • accountIndex?: bigint
import type {  } from "@cartesi/viem";

Return Type

The data is an object of type ListWithdrawalsReturnType:

import type {
    ,
    ,
    ,
} from "@cartesi/viem";