Skip to main content

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

ParameterInTypeRequiredDescription
accountquerystringyesEVM account address (0x-prefixed, 40 hex chars)
chainquerystringyesChain ID to query
lendersquerystringnoComma-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.
batchSizequeryintegernoMax number of sub-calls per multicall batch
blockTagquerystringnoBlock tag for the RPC calls

Response 200

FieldTypeDescription
successTrue
dataobject
data.dataobjectInformational payload. null when the endpoint only builds calldata.
data.data.rpcCallIdstringUnique ID referencing the server-side cached context. Pass this to /parse together with the raw responses. Valid for 5 minutes.
data.data.rpcCallsobject[]Ordered list of JSON-RPC calls to execute against the target chain RPC. Each call uses multicall3 aggregate3.
data.data.rpcCalls[].methodstringJSON-RPC method name
data.data.rpcCalls[].paramsany[]JSON-RPC parameters (call object and block tag)
actionsnull

Example response

{
"success": true,
"data": {
"data": {
"rpcCallId": "string",
"rpcCalls": [
{
"method": "eth_call",
"params": []
}
]
}
}
}

Request

Responses

Prepared RPC calls with a context ID for parsing