Skip to main content
This guide will help you create your first smart account using the Squads API. For a complete overview of the API capabilities, see the API Introduction.

Prerequisites

Before you begin, make sure you have:

Making API Requests

All requests should be made to the base URL: https://developer-api.squads.so Include your API key and network in the request headers of every request:

Create your first smart account

Create a basic smart account with a single signer. For more details about smart account creation and management, see the Create Smart Account documentation.
That’s it! Your smart account is ready to use immediately. No transaction submission or fee payment required. You can later add more signers or set up spending limits as needed.

Create a token transfer

Let’s create a token transfer transaction using your new smart account. We’ll break this down into steps:

1. Set up the transfer instruction

First, import the required dependencies and create the token transfer instruction:

2. Create a versioned transaction

Next, create a V0 transaction message with the latest blockhash:

3. Prepare the transaction

Send the transaction to the Squads API for preparation. This step will:
  • Add the necessary program instructions
  • Configure fee payment
  • Return the prepared transaction and fee details

4. Sign and submit the transaction

Finally, sign the prepared transaction with your wallet and submit it to Solana:
Each step builds on the previous one to create a complete token transfer flow. The Squads API handles the complexity of smart account execution, allowing you to focus on building your application logic.

Next steps

Add Spending Limits

Learn how to add spending controls

Explore the API

View detailed API documentation