getDepositList
Get the deposit list of the given account, identified by its address.
Usage
example.ts
import { publicClient } from "./client";
const depositList = await publicClient.getDepositList({
address: "cfx:...",
});Returns
DepositInfo []
Parameters
address
- Type:
Address
const depositList = await publicClient.getDepositList({
address: "cfx:...",
});epochTag (optional)
- Type:
latest_state|latest_confirmed|latest_checkpoint|earliest - Defaut:
latest_state
const depositList = await publicClient.getDepositList({
address: "cfx:...",
epochTag: "latest_state",
});epochNumber (optional)
- Type:
bigint
const depositList = await publicClient.getDepositList({
address: "cfx:...",
epochNumber: 1n,
});