Skip to main content
GET
/
api
/
v1
/
smart-accounts
/
{smart_account_address}
Get smart account details
curl --request GET \
  --url https://developer-api.squads.so/api/v1/smart-accounts/{smart_account_address} \
  --header 'Authorization: Bearer <token>' \
  --header 'x-squads-network: <x-squads-network>'
import requests

url = "https://developer-api.squads.so/api/v1/smart-accounts/{smart_account_address}"

headers = {
"x-squads-network": "<x-squads-network>",
"Authorization": "Bearer <token>"
}

response = requests.get(url, headers=headers)

print(response.text)
const options = {
method: 'GET',
headers: {'x-squads-network': '<x-squads-network>', Authorization: 'Bearer <token>'}
};

fetch('https://developer-api.squads.so/api/v1/smart-accounts/{smart_account_address}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://developer-api.squads.so/api/v1/smart-accounts/{smart_account_address}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"x-squads-network: <x-squads-network>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://developer-api.squads.so/api/v1/smart-accounts/{smart_account_address}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("x-squads-network", "<x-squads-network>")
req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://developer-api.squads.so/api/v1/smart-accounts/{smart_account_address}")
.header("x-squads-network", "<x-squads-network>")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://developer-api.squads.so/api/v1/smart-accounts/{smart_account_address}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-squads-network"] = '<x-squads-network>'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "smart_account_address": "<string>",
  "signers": [
    {
      "address": "<string>",
      "permissions": []
    }
  ],
  "threshold": 123,
  "admin_address": "<string>",
  "rent_collector": "<string>"
}
{
"status": 123,
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>",
"expected": "<string>",
"actual": "<string>"
}
],
"metadata": {
"status": 123,
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"resource_id": "<string>",
"useful_links": [
"<string>"
]
},
"custom": {},
"simulation_logs": [
"<string>"
]
}
{
"status": 123,
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>",
"expected": "<string>",
"actual": "<string>"
}
],
"metadata": {
"status": 123,
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"resource_id": "<string>",
"useful_links": [
"<string>"
]
},
"custom": {},
"simulation_logs": [
"<string>"
]
}
Get detailed information about a Smart Account, including its configuration, signers, and current settings.

Key Concepts

  • Account Configuration: View current signers and their permissions
  • Threshold Settings: Check the current signature threshold
  • Optional Settings: See configured time lock, rent collector, and config authority

Important Notes

  • The response includes all active signers and their current permissions
  • Time lock and other optional settings will be included if configured

Authorizations

Authorization
string
header
required

UUID-based API key provided by Squads

Headers

x-squads-network
enum<string>
required

Specifies the network for the API request

Available options:
mainnet,
devnet

Path Parameters

smart_account_address
string
required

The address of the smart account

Response

Smart account details retrieved successfully

smart_account_address
string
signers
object[]
threshold
integer<uint32>
admin_address
string
rent_collector
string