Create Spending Limit
Creates a new spending limit for a Smart Account
Documentation Index
Fetch the complete documentation index at: https://developers.squads.so/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"
Headers
Specifies which Solana network to use. Defaults to 'mainnet' if not provided. Valid values are 'devnet' or 'mainnet'.
devnet, mainnet Body
The address of the Smart Account
^[1-9A-HJ-NP-Za-km-z]{32,44}$The maximum amount in base units that can be spent within the specified period
The address of the token mint for which this spending limit applies
^[1-9A-HJ-NP-Za-km-z]{32,44}$Defines the period for spending limits:
- ONE_TIME: Limit can only be used once
- DAY: Limit resets daily
- WEEK: Limit resets weekly
- MONTH: Limit resets monthly
ONE_TIME, DAY, WEEK, MONTH List of addresses that will sign this transaction
^[1-9A-HJ-NP-Za-km-z]{32,44}$List of signer addresses that are authorized to use this spending limit
^[1-9A-HJ-NP-Za-km-z]{32,44}$List of allowed recipient addresses. If empty, funds can be sent to any address
^[1-9A-HJ-NP-Za-km-z]{32,44}$