Skip to main content
POST
Create a debit against a spending limit
Use a spending limit to move tokens between addresses.

Key Concepts

  • Spending Limit Validation: The amount must be within the remaining limit
  • Transaction Signing: Only authorized signers can create transactions
  • Destination: Tokens will be sent to the specified destination address

Important Notes

  • The amount cannot exceed the remaining limit
  • The spending limit must not be expired
  • The destination must be an allowed address if the spending limit has destination restrictions

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

spending_limit_address
string
required

The address of the spending limit

Body

application/json
amount
string<uint64>
required
signer_address
string
required
recipient_address
string
required
fee_config
object

Response

Debit created successfully

transaction
string
fee
object