
post
/v4/analytics/beneficial-owners/build
Build the beneficial-owners tree in the backgroundA cold build of a large tree can outlast the gateway timeout. Call this route with the holders parameters until status is completed, then call holders and allocations: they answer from the cache for a few minutes. A call starts the build, or joins the one in progress. A failed build answers with its own error (409, 403, 404) once; the next call starts a new build.
Request body
object
chainIdnumber | stringrequired
tokenstringrequired
atnumber | stringrequired
Responses
200Response for status 200
Schema
object
jobIdstringrequired
Unique job identifierstatusenumrequired
pendingprocessingcompletedfailedprogressnumberProgress percentage of the job (0-100)resultanyrequired
Result of the job if completederrorstringError message if job failedcreatedAtnumberrequired
Timestamp when job was createdcompletedAtnumberTimestamp when job completeddurationSecondsnumberrequired
Duration of the job in seconds (elapsed time if still processing, final duration if completed)Example
{
"jobId": "string",
"status": "pending",
"progress": 0,
"result": null,
"error": "string",
"createdAt": 0,
"completedAt": 0,
"durationSeconds": 0
}post
https://analytics.merkl.xyz/v4/analytics/beneficial-owners/buildcurl -X POST "https://analytics.merkl.xyz/v4/analytics/beneficial-owners/build" \
-H "Content-Type: application/json" \
-d '{ "chainId": 0, "token": "string", "at": 0 }'Live request: this will call https://analytics.merkl.xyz for real.