borrowLend payload - Borrow and Lend Operations
Decode Hyperliquid `borrowLend` payloads for borrow and lend operations, returned through Dwellir's read-only L1 gRPC API.
Read-only action reference
Dwellir's Hyperliquid gRPC API returns this decoded action payload through
StreamBlocks and
GetBlock. It does not submit or execute this action.
Submit supported user write actions through Hyperliquid's native
POST /exchange
endpoint.
The decoded borrowLend payload records a borrow or lend operation in Hyperliquid's lending protocol.
Sample Data
{
"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
| Field | Type | Description |
|---|---|---|
type | string | Always "borrowLend" |
operation | string | Operation type: "deposit", "withdraw", "borrow", "repay" |
token | number | Token index |
amount | string | Amount |
Use Cases
Lending Activity Tracking
Monitor lending operations:
def process_borrowLend_action(action):
operation = action.get('operation')
amount = action.get('amount')
print(f"Lending: {operation} {amount}")