Data exports
GET /{projectId}/download returns one of three exports. The route is public and needs no signature. Choose the export with the type query parameter. Add version to read an older points version.
curl 'https://altar.fund/api/v1/provex/download?type=distribution'curl 'https://altar.fund/api/v1/provex/download?type=breakdown&version=2026-11-12T10'curl 'https://altar.fund/api/v1/provex/download?type=audit'The response is JSON. The app turns the three exports into comma-separated values (CSV) files in your browser, and shows the download buttons to campaign admins. If you call the API yourself, you can build the same files from the JSON.
type |
JSON response | App file name |
|---|---|---|
distribution (default) |
{ addresses: [{ address, points }], version, contentsHash } |
distribution_<campaign>_<version>_<first 10 characters of the content hash>.csv |
breakdown |
{ pointBreakdown: [...], version, statistics } |
breakdown_<campaign>_<version>.csv |
audit |
{ projectInfo, pointsVersion, generatedAt, networks, blocks, transactions, sacrifices, priceSources, supportedTokens, sacrificeMutations, priceOverrides, statistics } |
audit_<campaign>_<time>.csv (deposit rows only) |
When the campaign has no points version yet, distribution returns an empty list and version and contentsHash are null.
Distribution
Section titled “Distribution”Two columns: address, points. points is scaled by 10^18. The contentsHash is a fingerprint of the full list of point entries of the version. Two copies with the same version name and the same hash are copies of the same list.
Point breakdown
Section titled “Point breakdown”One row for each point entry. A credit entry and a flat bonus entry belong to one deposit. A volume bonus entry belongs to an address, so its deposit columns are empty. The step and rate columns are filled in for credit entries only.
| Field | Meaning |
|---|---|
address | The points address that receives the points. |
points | Points, as a whole number scaled by 10^18 (divide by 10^18 for whole points). |
pointType | Kind of point entry: `credit` (from a deposit), `flat_bonus`, `volume_bonus`, or `referral_bonus`. |
networkType | Network family, such as `evm`. |
networkName | Network name. |
chainId | Chain identifier within the family. |
tokenSymbol | Token symbol, cleaned for display. |
tokenAddress | Token address on the chain. |
tokenDecimals | Decimal places of the token. |
sacrificeAmount | Deposit amount in the token smallest unit. |
price | Price of one token in US dollars, scaled by 10^18, or empty when unpriced. |
blockTimestamp | Time of the block that holds the deposit. |
step | Step number of the deposit, counted from the campaign start and beginning at 0 (the app shows it as "Day N" with N one higher, when a step is one day). The decay step behind `rate` counts from the inflection time, so the two can differ. Use `rate` for what the calculation applied. |
rate | The decay factor the points calculation applied, scaled by 10^18. 10^18 means no decay. 0 means the deposit earned nothing. |
blockNumber | Block number. |
blockHash | Block hash. |
transactionHash | Transaction hash. |
logIndex | Position of the log in the block. |
logType | What kind of onchain event the deposit is. |
CSV column order: address,points,pointType,networkType,networkName,chainId,tokenSymbol,tokenAddress,tokenDecimals,sacrificeAmount,price,timestamp,step,rate,blockNumber,blockHash,transactionHash,logIndex,logType
The audit JSON holds everything needed to recompute a campaign: deposits (the sacrifices list), the blocks and transactions behind them, the price sources, and the public corrections (sacrificeMutations, priceOverrides). The app’s CSV holds the deposit rows.
| Field | Meaning |
|---|---|
networkType | Network family, such as `evm`. |
networkName | Network name. |
chainId | Chain identifier within the family. |
blockNumber | Block number. |
blockHash | Block hash. |
blockTimestamp | Time of the block that holds the deposit. |
transactionHash | Transaction hash. |
logIndex | Position of the log in the block. |
logType | What kind of onchain event the deposit is. |
tokenSymbol | Token symbol, cleaned for display. |
tokenAddress | Token address on the chain. |
tokenDecimals | Decimal places of the token. |
amount | Deposit amount in the token smallest unit. |
pointsDestinationAddress | The points address the deposit is credited to. |
price | Price of one token in US dollars, scaled by 10^18, or empty when unpriced. |
priceSourceHash | A hash that identifies the price source settings used for the price. |
step | Step number of the deposit, counted from the campaign start and beginning at 0 (the app shows it as "Day N" with N one higher, when a step is one day). The decay step behind `rate` counts from the inflection time, so the two can differ. Use `rate` for what the calculation applied. |
rate | The decay factor the points calculation applied, scaled by 10^18. 10^18 means no decay. 0 means the deposit earned nothing. |
CSV column order: networkType,chainId,blockHash,blockNumber,blockTimestamp,logIndex,logType,transactionHash,tokenSymbol,tokenDecimals,amount,tokenAddress,pointsDestinationAddress,price,step,rate,priceSourceHash
The CSV leaves out the networkName field of the JSON rows.
Using the exports to check a result
Section titled “Using the exports to check a result”- Read the campaign settings from
GET /projects. - Take a deposit row from
audit. Itsrateis the decay factor the points calculation applied. - Compute the dollar value: amount × price ÷ 10^tokenDecimals (scaled by 10^18). Then compute dollar value × usdToPointBaseRate × rate ÷ 10^36. The result is the credit points, scaled by 10^18. The calculator does the same for one deposit, in whole dollars and points.
- Compare the result with the
creditentry of the same transaction inbreakdown.