0x_orkun
0x_orkun

Reputation: 11

What is the alternative of "approve" in evm on Solana?

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.

Upvotes: 1

Views: 1918

Answers (1)

Jon C
Jon C

Reputation: 8462

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:

Upvotes: 1

Related Questions