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
}This endpoint allows you to update the auto-settlement settings for a specific wallet. The primary purpose of this request is to enable or disable the auto-settlement feature for the wallet.
The request body must be in JSON format and can include the following parameter:
| Parameter | Type | Required | Description |
|---|---|---|---|
| isActive | boolean | No | Indicates whether the auto-settlement feature should be activated (true) or deactivated (false). |
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
}"{{walletId}}"
false
200
Show child attributes
false
"Base Master wallet swap auto ettlement"
Show child attributes
true
"Swap from Base USDC to Gateway"
"FASTEST"
"5"
[
{
"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"
}
}
]"Auto settlement disabled successfully"
200