lendborrow

Allow

Grants or revokes permission for designated manager addresses to operate on your account. You specify a manager's address along with a flag indicating whether they're allowed or disallowed, and the transaction is executed with customizable gas settings.

💡 Compute Unit Value: 115 (Fixed)

post/defi/v1/lendborrow/allow

Request

  • Base URL
    https://svc.blockdaemon.com
  • URL
    https://svc.blockdaemon.com/defi/v1/lendborrow/allow
  • Auth
    API key in header X-API-Key

Request body

lendborrowId'1300' | '1302'

The unique ID to specify the lending and borrowing protocol for routing relevant queries or transactions.

managerstring required

The address of the account that will be granted or revoked manager permissions.

isAllowedboolean required

Set to 'true' to allow the manager or 'false' to disallow the manager. Defaults to 'true'.

fromstring required

Blockchain address of the sender. For EVM chains, use a checksummed hex address (e.g., 0xABCDEF...). This address must hold sufficient balance and will sign the transaction.

gasstring

Maximum number of gas units to allocate for the transaction, as an integer string (e.g., '200000'). If omitted, gas is estimated automatically. Note: this is gas units, not wei or gwei.

gasPrioritystring

Specifies the priority level for gas fees (e.g., 'low', 'medium', or 'high'), which influences the transaction speed and cost.

marketstring

Standard market choice like USDC or WETH. Defaults to USDC if not specified.

enableFeeboolean

Flag to include a basis points fee transaction alongside the main transaction when set to true.

simulateboolean

When true, dry-runs the transaction batch via eth_simulateV1 and returns a simulate field with status and error on each transaction.

Example request

{
  "lendborrowId": "1300",
  "manager": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
  "isAllowed": false,
  "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
  "gas": "100000",
  "gasPriority": "low",
  "market": "USDC",
  "enableFee": false,
  "simulate": false
}

Response

Successful response

statusnumber

Numeric status code indicating success or failure of the API call

msgstring

Human-readable message describing the API result or error

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "1",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
    "to": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
    "value": "0",
    "gas": "50000",
    "data": "0x110496e5000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000000000000000000000000000000000000000000001",
    "estimationCheck": true,
    "referenceId": "3b91be949bb74695979ab5dcaf494f98"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.