Skip to main content

All Questions

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

Token2022 TransferHook AccountData seed error AccountNotFound

I'm using anchor to write a program that implements the transfer hook interface. One of the extra accounts is an "Authority" owned by the same program with a PDA derived from [b"...
Taylor Johnson's user avatar
0 votes
1 answer
31 views

CPI fails with Cross-program invocation with unauthorized signer or writable account

i'm facing a weird issue. I'm trying to transfer token (2022) from a pda to a user token account. The code looks like this: let transfer_checked_discriminant: u8 = 0x0c; let amount: u64 = 1; ...
Effe2's user avatar
  • 1,607
2 votes
0 answers
118 views

Cross-program invocation reentrancy not allowed for this instruction: Token 2022 Transfer Hook

Is anybody familiar with this error Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb consumed 15038 of 88944 compute units Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb failed: Cross-...
Fahad Ahmad's user avatar
1 vote
1 answer
67 views

Transfer Fees/Tax per Transfer of Token

How can we collect the transfer fee/tax per token transfer on Solana? Is it possible to automate this process, or do we need to collect it manually? Manually means here , to run js code for searching ...
Mohammad Abuzar's user avatar
0 votes
1 answer
45 views

I m unable to reallocate solana 2022 program transfer Fee extension

Getting error:failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0xd Code is: import { Connection, Transaction, clusterApiUrl, ...
Shahid Niazi's user avatar
0 votes
1 answer
91 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
  • 597
4 votes
1 answer
187 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
354 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
442 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
279 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
  • 141