getFirstTopup
Get the first topup (deposit) information for a wallet including date and amount.
Signature
getFirstTopup(walletAddress: string, chainId: number): Promise<FirstTopupResponse>
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
walletAddress | string | ✅ | Smart wallet address |
chainId | number | ✅ | Chain 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);