Package: react-wallet-kit
Overview
Signs and broadcasts a transaction using the specified wallet account.- For connected wallets:
- Calls the wallet’s native
signAndSendTransactionmethod. - Does not require an
rpcUrl.
- For embedded wallets:
- Signs the transaction using the Turnkey API.
- Requires an
rpcUrlto broadcast the transaction. - Broadcasts the transaction using a JSON-RPC client.
Parameters
Response
A successful response returns the following fields:A promise that resolves to a transaction signature or hash.