Skip to main content
POST
Prepare an arbitrary transaction for a smart account

Key Concepts

  • Transaction Signing: Only authorized signers can create transactions
  • Destination: Tokens will be sent to the specified destination address

Important Notes

  • The transaction must be valid and signed by the authorized signers

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

Query Parameters

debug
boolean

When true, includes transaction simulation logs in the response

Body

application/json
transaction
string
required

The serialized transaction to be processed

transaction_signers
string[]

List of signers for this transaction

fee_config
object

Response

Transaction prepared successfully

transaction
string

The prepared transaction ready for execution

fee
object
simulation_logs
string[]

Transaction simulation logs. Returns an empty array when debug=false or not provided.