Skip to main content

Questions tagged [transfer-checked]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
38 views

Does token-2022 allow selling tax instead of a basic transfer fee?

I'm new to Solana, I just wanted to figure out if the Token22 transfer fee extension can segregate buy tax and sell tax because in Ethereum I guess we could alter the ERC-20 contract by taking the LP ...
Rishabh Jamwal's user avatar
2 votes
1 answer
127 views

how to transfer spl token with transfer-hook extension

I used the Solana Playground wallet to deploy a program and obtained the program ID. The ID is 6baxXgMr7HypeTBhN64rbrt31UwbSeRtsQQxGw1KBi5b. Then, I used the following script to create an SPL token. //...
blueboy's user avatar
  • 23
0 votes
1 answer
62 views

Transfer within a transfer hook callback not working - writable privilege escalated on source account

I am trying to implement an additional transfer of the token that has a transfer hook from within the transfer hook callback. In particular, I am trying to send an additional token from the source ...
daoplays's user avatar
  • 587
4 votes
1 answer
125 views

Modify sent amount on Transfer hook

I have been recently started to play around the transfer hook and explored the Anchor tutorial on the website. My question is if the transfer hook reflects the end state of the transfer is there any ...
munifao's user avatar
  • 53
3 votes
1 answer
215 views

Token Extensions program custom program error: 0x7dc8348c

I using instructions from here https://spl.solana.com/token-2022/extensions, and getting error: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x7dc8348c while ...
Andriy's user avatar
  • 31
2 votes
2 answers
319 views

How do I send a token with the transfer-hook extension using the spl-token command line interface?

I am trying to test the transfer-hook extension by creating and minting a token using the example transfer-hook program. I have successfully deployed the program, created the token with the transfer-...
tonton's user avatar
  • 55
1 vote
1 answer
244 views

Token-2022: Can an Instruction to Execute a Transfer Hook be added to a Program with other Instructions?

I'm looking into using the transfer hook from token-2022 to run some logic whenever my custom spl-token is transferred. I came this Github link and while it helps, I have a lot of questions. Like for ...
Brian M.'s user avatar
  • 121
2 votes
1 answer
118 views

I can't transfer all of my Lamports to another account

If there are 891000 lamports in my account, I can't transfer all of these to another rich account. It says "Transaction simulation failed: Transaction results in an account (0) without ...
pengten's user avatar
  • 21
19 votes
2 answers
2k views

What is the difference between Transfer and TransferChecked instruction from the SPL Token Program?

I'm curious what the practical difference is between the Transfer and TransferChecked instructions, and when should we use one over the other. In this question, I'm using Transfer/TransferChecked as ...
beeman's user avatar
  • 950