Skip to content
Logo

listWithdrawals

Usage

import {  } from "viem";
import {  } from "@cartesi/viem";
 
const  = ({
    : ("http://127.0.0.1:6751/rpc"),
});
 
const { ,  } = await .({
    : "0x...",
    : 10,
    : 0,
    // accountIndex (optional)
});

Parameters

import type {  } from "@cartesi/viem";
// {
//   application: Address | string;
//   accountIndex?: bigint;
//   limit?: number;
//   offset?: number;
//   descending?: boolean;
// }

Return Type

import type {
    ,
    ,
    ,
} from "@cartesi/viem";
// ListWithdrawalsReturnType = {
//   data: Withdrawal[];
//   pagination: Pagination;
// }