sol_send_transaction, get_send_transaction_status, and get_gas_usage.
You can sign and broadcast Solana transactions in two primary ways:
-
Using the React handler (
handleSendTransaction) from@turnkey/react-wallet-kitThis gives you:- modals
- spinner + chain logo
- success screen
- explorer link
- built-in polling
-
Using low-level functions in
@turnkey/coreYou manually call:solSendTransaction→ submitpollTransactionStatus→ wait for confirmation
-
Using server-side
@turnkey/sdk-serverThis is the right choice for Node.js backends. It exposes the same methods via the server SDK client.
@turnkey/core directly, see Sending Sponsored Transactions.
Before sponsoring Solana transactions, review
Solana Rent Sponsorship. Rent sponsorship is
opt-in, disabled by default, and must be enabled in the dashboard first. This
is especially important if you sponsor transactions from swap providers or
other third-party builders that may create and close accounts.
This example shows how to submit a sponsored Solana transaction, but your
application is still responsible for validating transaction contents. If the
transaction may create accounts that require rent, ensure
Sponsor Solana Rent has been enabled in the dashboard first. Review whether the unsigned
transaction creates accounts, closes accounts, or routes rent refunds back to
the signer. See
Solana Rent Sponsorship for rent setup and
refund-path guidance, and Solana transaction construction for sponsored
flows for payer-model and
account-creation caveats.Using handleSendTransaction (React)
This handler wraps everything: intent creation, signing, Turnkey submission, polling, modal UX, and final success UI.
Step 1 — Configure the Provider
Step 2 — Use handleSendTransaction for Solana
- Opens the Turnkey modal
- Shows the chain logo
- Polls until
INCLUDED - Displays success page + explorer link