Skip to main content

getFirstTopup

Get the first topup (deposit) information for a wallet including date and amount.

Signature

getFirstTopup(walletAddress: string, chainId: number): Promise<FirstTopupResponse>

Parameters

ParameterTypeRequiredDescription
walletAddressstringSmart wallet address
chainIdnumberChain ID

Returns

First topup date and details

Return Type

interface FirstTopupResponse {
success: boolean;
walletAddress: string;
date: string;
amount?: string;
chainId?: number;
}

Example

const firstTopup = await sdk.getFirstTopup("0x...", 8453);
console.log("First deposit date:", firstTopup.date);
console.log("Amount:", firstTopup.amount);