Docs

borrowLend - Borrow and Lend Operations

Borrow or lend assets on Hyperliquid's lending protocol.

Borrow or lend assets through Hyperliquid's lending protocol.

Sample Data

JSON
{
  "signature": {
    "r": "0x73fe72e61a4a23d81cfaf36a5a313266a7f990fe5782bbd210b2d3ef1cd3d1c0",
    "s": "0x2971452d4fae3a4d9275abf2ff8f4347c79b414e4f267d4ed05c13c28c029499",
    "v": 28
  },
  "action": {
    "type": "borrowLend",
    "operation": "supply",
    "token": 0,
    "amount": null
  },
  "nonce": 1768147177757,
  "expiresAfter": 1768147188937
}

View this transaction on Hypurrscan

Field Reference

Action Fields

FieldTypeDescription
typestringAlways "borrowLend"
operationstringOperation type: "deposit", "withdraw", "borrow", "repay"
tokennumberToken index
amountstringAmount

Use Cases

Lending Activity Tracking

Monitor lending operations:

Python
def process_borrowLend_action(action):
    operation = action.get('operation')
    amount = action.get('amount')
    print(f"Lending: {operation} {amount}")