Skip to content

Pre-compute and persist engine data for a wallet

POST
/api/wallets/{address}/precompute
curl --request POST \
--url 'https://api.qeychain.xyz/api/wallets/example/precompute?force=false'

Fire-and-forget: returns immediately with 202 Accepted while the engine runs in the background. Call this from an external app so that when the user later opens the dashboard, data loads instantly from DB (~1s instead of ~14s). If data is already fresh, returns 200 with no background work.

address
required
Address
string
owned_wallets
Any of:
Array<string>

All wallet addresses owned by the user

force
Force

Force recompute even if DB already has fresh data.

boolean

Force recompute even if DB already has fresh data.

Successful Response

Media typeapplication/json
Examplegenerated
example

Bad Request

Media typeapplication/json
ErrorResponse

Standard error response.

object
detail
required
Detail

Error message

string
error_code
Any of:
string
Examplegenerated
{
"detail": "example",
"error_code": "example"
}

Not Found

Media typeapplication/json
ErrorResponse

Standard error response.

object
detail
required
Detail

Error message

string
error_code
Any of:
string
Examplegenerated
{
"detail": "example",
"error_code": "example"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}

Internal Server Error

Media typeapplication/json
ErrorResponse

Standard error response.

object
detail
required
Detail

Error message

string
error_code
Any of:
string
Examplegenerated
{
"detail": "example",
"error_code": "example"
}