cURL
curl --request GET \ --url https://developer-api.squads.so/api/v1/smart-accounts/{smart_account_address}/spending-limits/{spending_limit_address} \ --header 'Authorization: Bearer <token>' \ --header 'x-squads-network: <x-squads-network>'
{ "spending_limit": { "address": "<string>", "token_address": "<string>", "amount": "<string>", "remaining_amount": "<string>", "last_reset": 123, "period": "ONE_TIME", "spending_limit_signers": [ "<string>" ], "destinations": [ "<string>" ], "expiration": 123 } }
Get details of a specific spending limit
UUID-based API key provided by Squads
Specifies the network for the API request
mainnet
devnet
The address of the smart account
The address of the spending limit
Spending limit retrieved successfully
Show child attributes
Address of the spending limit
Address of the token
Spending limit amount in base units
Remaining amount in base units
Timestamp of the last reset
Reset period for spending limits
ONE_TIME
DAILY
WEEKLY
MONTHLY
YEARLY
List of authorized signers
List of authorized destinations
Optional expiration timestamp
Was this page helpful?