Package: react-wallet-kit

Overview

Signs and broadcasts a transaction using the specified wallet account.
  • For connected wallets:
  • Calls the wallet’s native signAndSendTransaction method.
  • Does not require an rpcUrl.
  • For embedded wallets:
  • Signs the transaction using the Turnkey API.
  • Requires an rpcUrl to broadcast the transaction.
  • Broadcasts the transaction using a JSON-RPC client.

Parameters

params
object
required

Response

A successful response returns the following fields:
returns
string
required
A promise that resolves to a transaction signature or hash.