Skip to main content
This tutorial walks you through creating a developer-controlled wallet to sign transactions on Solana.

Prerequisites

Before you begin:

Step 1. Create Solana wallets

When creating a developer-controlled wallet, pass SOL-DEVNET or SOL in the blockchains field. This wallet can be used to sign transactions. The following example code shows how to create a wallet using the Circle Developer SDK.
Use count to specify the number of wallets to create, up to a maximum of 200 per API request.

Step 2. Prepare a raw transaction

For Solana, you can sign a raw transaction using the API or SDK. The following example code shows how to prepare a raw transaction for swapping tokens on Jupiter. Note that this code is purely for example purposes only.

Step 3. Sign the raw transaction

The following example code shows how to sign the raw transaction.
The raw transaction must be provided as a Base64 encoded string. Ensure that it is properly encoded before submission.
The following example code shows how you can encode a raw transaction to a Base64 encoded string in JavaScript.