Deposit

Deposit functions creates associated address with program id and creates an address , which we called zebec wallet. Funds are deposited in this vault.

// Native Token

 const response = await native.deposit({
      sender: 'Av6xsgSrnM1UAj4pUZnEWM97iBphph69NPHE8J2ceeYs', //signer
      amount: 1,
 });
 
 console.log(response); 
 
// SPL Token

 const response = await token.deposit({
      sender: 'Av6xsgSrnM1UAj4pUZnEWM97iBphph69NPHE8J2ceeYs',
      token_mint_address:'zebeczgi5fSEtbpfQKVZKCJ3WgYXxjkMUkNNx7fLKAF',
      amount: 1,
 });
 
 console.log(response); 

Last updated