The @abstraxn/signer-react and @abstraxn/signer-core packages help you add embedded and external wallet onboarding to your dApp.
1. Installation
Install both SDK packages using your preferred package manager:
2. Get Your API Key
- Visit https://dashboard.abstraxn.com/
- Log in or sign up
- Go to Apps and click Create New App
- Navigate to Wallets and click Add Wallet Service
- Click View Details and copy your API key
Keep your API key in environment variables. Do not hardcode it in client code.
3. Setup Provider
Wrap your app with AbstraxnProvider:
3b. Enable Solana Gasless Transactions (Optional)
If your app supports Solana, you can enable gasless transactions by adding the solanaGasless option to your provider config. This uses the same gas sponsorship model as the Solana Relayer — fees are paid from your paymaster gas pool.
To get your Solana relayer URL, go to your Abstraxn Dashboard → Paymaster — if your app has Solana selected, you will see the Solana paymaster link.
4. Connect Wallet
Use the built-in connect UI:
5. Send a Transaction (Current Flow)
Use usePrepareRawTxn -> useSignAndSendTxn -> useWaitForTxnReceipt.
Useful Links