Skip to main content
PUT
https://partners-backend-1038109371738.europe-west1.run.app
/
api
/
v1
/
{chain_id}
/
wallets
/
{wallet}
/
protocols
curl -X PUT "https://partners-backend-1038109371738.europe-west1.run.app/api/v1/8453/wallets/0x.../protocols" \
  -H "Content-Type: application/json" \
  -H "X-Partner-API-Key: your-api-key" \
  -H "X-Partner-Name: your-partner-name" \
  -d '["aave", "compound", "moonwell", "fluid"]'
(empty response body)
SDK Alternative: Use giza.agent.updateProtocols() for a simpler TypeScript interface. See SDK docs

Description

Updates the list of protocols that the agent can use for optimization. The agent will rebalance according to the new protocol selection.

Path Parameters

chain_id
integer
required
The blockchain chain ID
wallet
string
required
The wallet address

Request Body

The request body should be a JSON array of protocol names:
["aave", "compound", "moonwell", "fluid"]

Response

Returns 204 No Content on success.
curl -X PUT "https://partners-backend-1038109371738.europe-west1.run.app/api/v1/8453/wallets/0x.../protocols" \
  -H "Content-Type: application/json" \
  -H "X-Partner-API-Key: your-api-key" \
  -H "X-Partner-Name: your-partner-name" \
  -d '["aave", "compound", "moonwell", "fluid"]'
(empty response body)