Passer au contenu principal
POST
/
v1
/
wallets
/
{walletId}
/
addresses
/
{addressId}
/
auto-settlements
/
rules
Child Address Create Rule
curl --request POST \
  --url https://api.blockradar.co/v1/wallets/{walletId}/addresses/{addressId}/auto-settlements/rules \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "destination": {},
  "isActive": true,
  "isGateway": true,
  "name": "Swap from USDC to Gateway",
  "order": "FASTEST",
  "slippageTolerance": "5",
  "source": {
    "assets": [
      "USDC"
    ],
    "maxAmount": "1000",
    "minAmount": "1"
  }
}
'
{
  "data": {
    "createdAt": "2025-08-26T17:27:37.369Z",
    "destination": {
      "address": "0x77777777Dcc4d5A8B6E418Fd04D8997ef11000eE",
      "asset": "USDC",
      "blockchain": "base"
    },
    "id": "55869cbe-fa3a-44d2-a7e3-d65c08355e4d",
    "isActive": true,
    "isGateway": true,
    "name": "Swap from USDC to Gateway",
    "order": "FASTEST",
    "slippageTolerance": "5",
    "source": {
      "assets": [
        "USDC"
      ],
      "blockchain": "base",
      "maxAmount": "1000",
      "minAmount": "1"
    },
    "updatedAt": "2025-08-26T17:27:37.369Z"
  },
  "message": "Auto settlement rule created successfully",
  "statusCode": 200
}

Autorisations

x-api-key
string
header
requis

Paramètres de chemin

walletId
string
requis
Exemple:

"{{walletId}}"

addressId
string
requis
Exemple:

"534e0480-f444-40c0-bc2e-2ef17bf7999e"

Corps

application/json
destination
object
isActive
boolean
Exemple:

true

isGateway
boolean
Exemple:

true

name
string
Exemple:

"Swap from USDC to Gateway"

order
string
Exemple:

"FASTEST"

slippageTolerance
string
Exemple:

"5"

source
object

Réponse

200 - application/json

Regular 200 / Gateway 200

data
object
message
string
Exemple:

"Auto settlement rule created successfully"

statusCode
number
Exemple:

200