cURL
curl --request POST \ --url https://developer-api.squads.so/api/v1/smart-accounts/{smart_account_address}/transactions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-squads-network: <x-squads-network>' \ --data ' { "transaction": "<string>", "transaction_signers": [ "<string>" ], "fee_config": { "currency": "<string>", "payer_address": "<string>", "self_managed_fees": false } } '
{ "transaction": "<string>", "fee": { "amount": "<string>", "amount_decimal": "<string>", "currency": "<string>", "sol_equivalent": { "amount": "<string>", "amount_decimal": "<string>" } }, "simulation_logs": [ "<string>" ] }
Prepare an arbitrary transaction for a smart account
UUID-based API key provided by Squads
Specifies the network for the API request
mainnet
devnet
The address of the smart account
When true, includes transaction simulation logs in the response
The serialized transaction to be processed
List of signers for this transaction
Show child attributes
Transaction prepared successfully
The prepared transaction ready for execution
Transaction simulation logs. Returns an empty array when debug=false or not provided.
Was this page helpful?