Skip to content

Add token transfers#31

Merged
KyleSmith19091 merged 3 commits into
mainfrom
add-token-transfers
May 22, 2026
Merged

Add token transfers#31
KyleSmith19091 merged 3 commits into
mainfrom
add-token-transfers

Conversation

@KyleSmith19091

Copy link
Copy Markdown
Contributor

Adds a TransferToken RPC that transfers tokens between holding accounts using the TransferChecked instruction.

The service resolves the token program and decimal precision from the on-chain mint account, derives source and destination ATAs from the provided owner public keys, and accepts a human-readable
decimal amount string (e.g. "3.5").

  • Proto: new TransferToken RPC, TransferTokenRequest/TransferTokenResponse messages
  • Rust: transfer.rs handler with input validation, on-chain mint lookup, ATA derivation
  • Works with both SPL Token and Token-2022 mints
  • E2E test covering mint creation → holding account setup → mint tokens → transfer → supply verification

@KyleSmith19091 KyleSmith19091 merged commit 96d18fb into main May 22, 2026
5 checks passed
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