PATCH
/
accounts
/
{address}
/
spending-limit
/
{spending_limit_address}
Update spending limit
curl --request PATCH \
  --url https://grid.squads.xyz/api/grid/v1/accounts/{address}/spending-limit/{spending_limit_address} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-grid-environment: <api-key>' \
  --data '{
  "amount": "2000000000",
  "spending_limit_signers": [
    "11111111111111111111111111111112",
    "33333333333333333333333333333334"
  ]
}'
{
  "data": {
    "transaction": "<string>",
    "kms_payloads": [],
    "simulation_logs": [
      "<string>"
    ],
    "transaction_signers": [
      "11111111111111111111111111111112"
    ]
  },
  "metadata": {
    "request_id": "123e4567-e89b-12d3-a456-426614174000",
    "timestamp": "2023-07-15T14:30:00.000Z"
  }
}

Authorizations

Authorization
string
header
required

API key authentication with Bearer token. Include the API key in the Authorization header as 'Bearer YOUR_API_KEY'

x-grid-environment
string
header
required

Environment identifier for the Grid API. Use 'sandbox' for testing on devnet or 'production' for production on mainnet.

Path Parameters

address
string
required

Account address

Example:

"11111111111111111111111111111112"

spending_limit_address
string
required

Spending limit address

Example:

"11111111111111111111111111111112"

Body

application/json

Response

201
application/json

Update spending limit transaction prepared successfully

The response is of type object.