This function retrieves all deposits associated with a specific signer on a given chain.

Usage

const deposits = await peanut.getAllDepositsForSigner({
  signer: yourSigner,
  chainId: '1', // Ethereum Mainnet
  contractVersion: 'v4.3' // Optional, defaults to latest
});

Parameters

Description

Use this function to fetch all deposits made by a specific address on a particular blockchain. It's useful for retrieving a user's deposit history or checking the status of their deposits.The function returns an array of deposit objects, each containing details about a specific deposit made by the signer's address.