POST
/
api
/
v0
/
smart_account
/
transaction
/
spending_limit
/
update
curl --request POST \
  --url https://developer-api.squads.so/api/v0/smart_account/transaction/spending_limit/update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "smart_account_address": "<string>",
  "spending_limit_address": "<string>",
  "amount": "<string>",
  "token_address": "<string>",
  "period": "ONE_TIME",
  "transaction_signers": [
    "<string>"
  ],
  "spending_limit_signers": [
    "<string>"
  ],
  "destinations": [
    "<string>"
  ],
  "fee_config": {
    "currency": "sol",
    "payer_address": "<string>"
  }
}'
{
  "transaction": "<string>",
  "fee": {
    "amount": "<string>",
    "amount_decimal": "<string>",
    "currency": "<string>",
    "sol_equivalent": {
      "amount": "<string>",
      "amount_decimal": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"

Headers

x-squads-network
enum<string>
default:mainnet

Specifies which Solana network to use. Defaults to 'mainnet' if not provided. Valid values are 'devnet' or 'mainnet'.

Available options:
devnet,
mainnet

Body

application/json

Response

200
application/json

Spending limit successfully updated

The response is of type object.