1

I have several wallets in evm. I give their X token access to my main wallet by calling Contract(x).approve() function. Thus i can make operations with these wallets. Now i want to do same thing on solana with solana web3 library. However i cannot find any function that gives allowance to my main wallet. The X token on Solana uses solana token program.

0x_orkun
  • 11
  • 1

1 Answers1

1

Correct, you cannot approve tokens using the normal @solana/web3.js package, so you'll have to use the @solana/spl-token package in one of two ways:

Jon C
  • 7,019
  • 10
  • 17