cURL
curl --request DELETE \ --url https://developer-api.squads.so/api/v1/smart-accounts/{smart_account_address}/spending-limits/{spending_limit_address} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-squads-network: <x-squads-network>' \ --data ' { "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>" } } }
Delete an existing 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
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.
Spending limit deleted successfully
Fee amount in base units
Decimal representation of the fee amount
Currency of the fee
Amount in base units
Decimal representation of the amount
Was this page helpful?