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.
What is the alternative of "approve" in evm on Solana?
1.4k Views Asked by 0x_orkun At
1
There are 1 best solutions below
Related Questions in SOLANA
- invalid transaction: Transaction failed to sanitize accounts offsets correctly
- Solana openbook-dex createMarket script
- Solana SendTransactionError 0x16
- please solve my solana wallet's hacking issues
- How to Mint a Fungible Token with Metadata on Solana using @Solana/web3.js
- Could not build idl using anchor
- How to convert a constant into a ProgramError type in Rust/Anchor when returning in a function?
- How do I speed up transaction filtering on solan blockchain?
- "No data" after sending tx Jupiter Swap Python
- Add Solana Network to Wallet Connect Web package
- Raydium CLLM pool not showing up after 4 days
- get transactions/logs from different program, on a span of blocks
- How do I modify this SPL create token code to use the non transfereable and interest bearing extension using Metaplex
- error: could not find `solana-cargo-build-sbf` in registry `crates-io` with version `=1.19.0`
- Solana add instructions to VersionedTransaction in python
Related Questions in SPL
- SplFixedArray is much slower and much more memory hungry than array, PHP8.3
- Converting Erros in progress using GPDL
- PHP: ArrayObject method signature not compatible with ArrayAccess interface
- mySQL UPDATE or INSERT or DELETE in one statement
- 2 tables in one gallery but view different titled columns
- Join 2 searches on Splunk
- how to remove dynamic column
- How spl_autoload_register works?
- How to create PHP SplStack from array
- Using phantom to import solana wallet that was created in cli
- Is it possible to pre-generate a dashboard in splunk
- spl-token create-token failed to create token
- saving metadata on private storage instead of metaplex solana
- Exchange ERC20 (Ethereum) with SPL (Solana) via DEX
- PHP8 - SplFixedArray iterator's next() doesn't move key pointer
Related Questions in EVM
- Blind signing when trying to send USDT over Arbitrum network
- Metamask SDK being not able to detect 'accountsChanged` event
- Wagmi: refetch data on connected wallet change
- InternalCompilerError: Expected signed type
- aggregate method from multicall3 fails. is there any limits on number of batched calls?
- Issue with Safe Indexation on Arianee Supernet: Stuck at "Indexation" Stage
- Using package @ethereumjs and having 'invalid transaction trie'
- abi.encode() giving different results in ganache and sepolia , both of them don't make sense
- ERC721 contract call: transfer caller is not owner nor approved
- Disassembling bytecode into opcodes across different EVM versions
- How to apply opcodes optimization directly on opcodes? Solidity compiler
- I'm trying to deploy any contract on EVM but it fails stating "Transaction has been reverted by the EVM."
- TypeError: invalid value for Contract target (argument="target", value=null, code=INVALID_ARGUMENT, version=6.8.1)
- ERc20 balance is not update when using proxy
- How to use chainlink automation to call a function with onlyAdmin modifier?
Related Questions in SOLANA-WEB3JS
- Solana openbook-dex createMarket script
- Solana SendTransactionError 0x16
- please solve my solana wallet's hacking issues
- How to Mint a Fungible Token with Metadata on Solana using @Solana/web3.js
- How to fix the error Class extends value undefined is not a constructor or null
- Raydium CLLM pool not showing up after 4 days
- How do I modify this SPL create token code to use the non transfereable and interest bearing extension using Metaplex
- How to create a spl22 token?
- Get new tokens on Solana (realtime)
- Candy Machine mintV2: Split Mint fee
- Candy Machine mintV2: Incorrect minting fee
- Solana mainnet block height exceeded for transactions with `TransactionExpiredBlockheightExceededError` error
- How to add token metadata to solana token 2022 token created using createInitializeTransferFeeConfigInstruction extension
- Is it possible to send SPL-Tokens to multiple addresses in 1 or multiple transaction with spltoken cli in Solana
- Candy Machine mintV2 - Error: failed to send transaction: Transaction simulation failed - Incorrect collection NFT authority
Related Questions in SOLANA-PROGRAM-LIBRARY
- How to Mint a Fungible Token with Metadata on Solana using @Solana/web3.js
- How to create a spl22 token?
- Compute fee for Solana transferCheckedWithFee instruction
- How to create an associated token account in solana using the token-2022 program
- Get new tokens on Solana (realtime)
- Candy Machine mintV2: Split Mint fee
- Solana mainnet block height exceeded for transactions with `TransactionExpiredBlockheightExceededError` error
- How to add token metadata to solana token 2022 token created using createInitializeTransferFeeConfigInstruction extension
- Error when attempting to mint SPL token on Solana
- Solana Frontend phantom wallet integration issue for making the transactions on the devnet
- Is it possible to send SPL-Tokens to multiple addresses in 1 or multiple transaction with spltoken cli in Solana
- How to correctly import solders for Pubkey into a project?
- Is it possible to check the Solana program `macro` correctness before deployment?
- Does program keypair has any other usage besides program deployment?
- Transaction failing while calling a Solana program with PDA
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Correct, you cannot approve tokens using the normal
@solana/web3.jspackage, so you'll have to use the@solana/spl-tokenpackage in one of two ways:approvedoes it from the client (https://github.com/solana-labs/solana-program-library/blob/edec44180c3349abd77677acb2270a00121f2936/token/js/client/token.js#L905)createApproveInstructioncreates the instruction which you must include in aTransasctionand then send (https://github.com/solana-labs/solana-program-library/blob/edec44180c3349abd77677acb2270a00121f2936/token/js/client/token.js#L1570)