type PoolOutput { protocol: String! # Protocol that returned the data chainId: Int! # Chain ID of the pool poolAddress: String! # Pool address queried data: String! # JSON-serialized protocol-native pool data}type MultiPoolResponse { data: [PoolOutput!]! errors: [PoolProtocolError!]!}
The data field is a JSON string. Parse it with JSON.parse() to access the typed object. Use the type field in the parsed object to determine the response shape.
Partial failures: If one protocol fails, the others still return data. Always check both data and errors arrays in the response.
Morpho supports two pool types. Pass a vault address (42-character hex) for vault pool data, or a market unique key (66-character hex) for market pool data.