PATCH
/
v1
/
wallets
/
{walletId}
/
auto-settlements
Update Settlement
curl --request PATCH \
  --url https://api.blockradar.co/v1/wallets/{walletId}/auto-settlements \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "isActive": false
}'
{
  "data": {
    "isActive": false,
    "name": "Base Master wallet swap auto ettlement",
    "rules": [
      {
        "destination": {
          "address": "0x0077777d7EBA4688BDeF3E311b846F25870A19B9",
          "asset": "USDC",
          "blockchain": "base",
          "isGateway": true
        },
        "isActive": true,
        "name": "Swap from Base USDC to Gateway",
        "order": "FASTEST",
        "slippageTolerance": "5",
        "source": {
          "assets": [
            "USDC"
          ],
          "blockchain": "base",
          "maxAmount": "1000",
          "minAmount": "1"
        }
      }
    ]
  },
  "message": "Auto settlement disabled successfully",
  "statusCode": 200
}

Authorizations

x-api-key
string
header
required

Path Parameters

walletId
string
required
Example:

"{{walletId}}"

Body

application/json

Response

200 - application/json

200

The response is of type object.