Get Lots
GET
/api/v1/wallets/{address}/lots
const url = 'https://api.qeychain.xyz/api/v1/wallets/example/lots?page=1&per_page=50';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.qeychain.xyz/api/v1/wallets/example/lots?page=1&per_page=50'Get tax lots for a wallet with filtering and pagination.
Response Format:
{
"success": true,
"data": [
{"lot_id": "ETH-001", "symbol": "ETH", "status": "OPEN", ...}
],
"meta": {...},
"pagination": {...}
}
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”address
required
Address
string
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Response Get Lots Api V1 Wallets Address Lots Get
object
key
additional properties
any
Examplegenerated
{}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}