Prerequisites
- @solana/kit
- @solana/web3.js
- Anchor
The modern Solana library with the
@solana/signers interface. Recommended for new projects.Install
@getpara/react-sdk bundles @getpara/solana-signers-v2-integration — no separate integration package needed.Usage
- Hook (React)
- Direct (Non-React)
Use the hook to create a Solana signer for your user’s Para embedded wallet or external wallet. The hook wraps transaction signing in a React Query mutation.
Wallet Resolution
When noaddress or walletId is passed, the hook resolves the wallet in this order:- Selected wallet — if the user selected a Solana wallet in the UI. If there is only one Solana wallet in the session, it is already selected by default
- First Solana wallet — the first available Solana wallet on the account