Skip to Content
Symmio Trading-SDK — the SDK surface for builders on HyperEVM
CoreSYMMIO ContractgetLastWithdrawRequestId

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

userAddressrequired

The subaccount whose latest request id to read.

chainIdnumberoptional

Optional chain override.

Returns

bigint
The 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