Skip to content

​Overview

Channel transfers are standard SPL token transfers submitted to the gateway - there is no dedicated Private Channels transfer instruction. The gateway routes the transaction to the write node, which executes it against the channel’s offchain accounts layer. Transfers confirm when the sequencer processes them, not when a Solana block confirms, and do not appear on Mainnet.

​Switch Your Wallet RPC

Before sending a transfer, switch your wallet’s RPC endpoint to the gateway URL instead of Solana Devnet:
Transactions sent to a public Solana RPC land on the Solana cluster (devnet here), not the channel.

​Authentication

If you started the stack without --profile auth (the default devnet configuration), the gateway operates in open mode and no token is required - skip this section. When the Auth Service is enabled (JWT_SECRET is set on the gateway), all requests require a JWT bearer token in the Authorization header:
See Authentication & Roles for how to register, log in, and obtain a token.

​Build and Send a Transfer

If the recipient’s associated token account does not exist on the channel yet, add a createAssociatedTokenAccountIdempotent instruction before the transfer. The code below handles both cases:
transactionSigner must be a TransactionSendingSigner, such as a wallet signer from @solana/kit-plugin-wallet. With an ordinary KeyPairSigner, assertIsTransactionMessageWithSingleSendingSigner throws No TransactionSendingSigner was identified and nothing is sent. For keypair scripts, replace the last two calls with signTransactionMessageWithSigners plus sendAndConfirmTransactionFactory, or use client.sendTransaction([...]).

​Verify the Transfer

Query the recipient’s channel balance through the gateway to confirm the transfer landed:

​Next Steps

Withdraw Funds - withdraw tokens back to your Solana wallet