getLastWithdrawRequestId
Read the id of the most recent withdraw request for a subaccount.
import { getLastWithdrawRequestId } from "@symmio/trading-core";
const lastId = await getLastWithdrawRequestId(config, { user });Parameters
userAddressrequiredThe subaccount whose latest request id to read.
chainIdnumberoptionalOptional chain override.
Returns
bigintThe last assigned request id, or
0n when the subaccount has no requests.Query options
import { getLastWithdrawRequestIdQueryOptions } from "@symmio/trading-core";
import { useQuery } from "@tanstack/react-query";
useQuery(getLastWithdrawRequestIdQueryOptions(config, { user }));Last updated on