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
Currency for the fee
Address of the fee payer
When true, the fee is paid by the smart account itself. When false or not set, the fee is paid by the transaction signers.
Transaction prepared successfully
The prepared transaction ready for execution
Fee amount in base units
Decimal representation of the fee amount
Currency of the fee
Amount in base units
Decimal representation of the amount
Transaction simulation logs. Returns an empty array when debug=false or not provided.
Was this page helpful?