Skip to content

Conversation

@shankars99
Copy link
Collaborator

Barebone example on how to use Token2022's TransferHook to revert when a token transfer amont is lower than 100.

There is a fair amount of boilerplating involved and most of the business logic (if not all) is going to be under transfer_hook.rs -> impl TransferHookExecute

references: https://solana.com/developers/guides/token-extensions/transfer-hook

https://www.solana-program.com/docs/token-2022/extensions#transfer-hook

Signed-off-by: shankar shankar@layerzero.org

Signed-off-by: shankar <shankar@layerzero.org>
@shankars99 shankars99 self-assigned this Jan 15, 2026
@github-actions
Copy link
Contributor

🧪 E2E Test Status

E2E tests are non-blocking and validate real blockchain interactions. Failures may occur due to network issues, RPC rate limits, or external service downtime.

Test Runs (Newest First):

  • Run #6558 - Passed - 2026-01-15 17:15 (UTC)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant