User position RPC calls
GET/v1/data/lending/user-positions/rpc-call
Prepares raw JSON-RPC calls (using multicall3 aggregate3) for fetching user lending positions on a single chain. Returns an rpcCallId and an array of rpcCalls that the integrator executes against their own RPC provider. The raw responses are then submitted to /parse together with the rpcCallId.
Plain-text reference — GET /v1/data/lending/user-positions/rpc-call
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
account | query | string | yes | EVM account address (0x-prefixed, 40 hex chars) |
chain | query | string | yes | Chain ID to query |
lenders | query | string | no | Comma-separated lender IDs to filter by. If omitted, all supported lenders for the chain are included. See the LenderId schema for the full set of accepted values. |
batchSize | query | integer | no | Max number of sub-calls per multicall batch |
blockTag | query | string | no | Block tag for the RPC calls |
Response 200
| Field | Type | Description |
|---|---|---|
success | True | |
data | object | |
data.data | object | Informational payload. null when the endpoint only builds calldata. |
data.data.rpcCallId | string | Unique ID referencing the server-side cached context. Pass this to /parse together with the raw responses. Valid for 5 minutes. |
data.data.rpcCalls | object[] | Ordered list of JSON-RPC calls to execute against the target chain RPC. Each call uses multicall3 aggregate3. |
data.data.rpcCalls[].method | string | JSON-RPC method name |
data.data.rpcCalls[].params | any[] | JSON-RPC parameters (call object and block tag) |
actions | null |
Example response
{
"success": true,
"data": {
"data": {
"rpcCallId": "string",
"rpcCalls": [
{
"method": "eth_call",
"params": []
}
]
}
}
}
Request
Responses
- 200
- 400
- 429
- 500
- 502
Prepared RPC calls with a context ID for parsing
Validation error
Rate limited. Unauthenticated callers share a per-IP budget; send an x-api-key header to lift it. Retry with exponential backoff.
Unexpected server error. Safe to retry with backoff.
An upstream data source or protocol origin failed (error.code is ORIGIN_FAILED). error.details carries the per-origin status. This is also what a missing or malformed required parameter currently returns, rather than a 400.