SDK Overview
The SDK primarily abstracts three endpoints:You can sign and broadcast transactions in two primary ways:eth_send_transaction,get_send_transaction_status, andget_gas_usage.
-
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:ethSendTransaction→ submitpollTransactionStatus→ wait for inclusion
-
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.
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 inside your UI
- Full React handler implementation here
- opens Turnkey modal
- shows chain logo
- polls until INCLUDED
- displays success page + explorer link