Skip to content

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.

Terminal window
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.

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.

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.

FieldMeaning
addressThe points address that receives the points.
pointsPoints, as a whole number scaled by 10^18 (divide by 10^18 for whole points).
pointTypeKind of point entry: `credit` (from a deposit), `flat_bonus`, `volume_bonus`, or `referral_bonus`.
networkTypeNetwork family, such as `evm`.
networkNameNetwork name.
chainIdChain identifier within the family.
tokenSymbolToken symbol, cleaned for display.
tokenAddressToken address on the chain.
tokenDecimalsDecimal places of the token.
sacrificeAmountDeposit amount in the token smallest unit.
pricePrice of one token in US dollars, scaled by 10^18, or empty when unpriced.
blockTimestampTime of the block that holds the deposit.
stepStep 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.
rateThe decay factor the points calculation applied, scaled by 10^18. 10^18 means no decay. 0 means the deposit earned nothing.
blockNumberBlock number.
blockHashBlock hash.
transactionHashTransaction hash.
logIndexPosition of the log in the block.
logTypeWhat 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.

FieldMeaning
networkTypeNetwork family, such as `evm`.
networkNameNetwork name.
chainIdChain identifier within the family.
blockNumberBlock number.
blockHashBlock hash.
blockTimestampTime of the block that holds the deposit.
transactionHashTransaction hash.
logIndexPosition of the log in the block.
logTypeWhat kind of onchain event the deposit is.
tokenSymbolToken symbol, cleaned for display.
tokenAddressToken address on the chain.
tokenDecimalsDecimal places of the token.
amountDeposit amount in the token smallest unit.
pointsDestinationAddressThe points address the deposit is credited to.
pricePrice of one token in US dollars, scaled by 10^18, or empty when unpriced.
priceSourceHashA hash that identifies the price source settings used for the price.
stepStep 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.
rateThe 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.

  1. Read the campaign settings from GET /projects.
  2. Take a deposit row from audit. Its rate is the decay factor the points calculation applied.
  3. 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.
  4. Compare the result with the credit entry of the same transaction in breakdown.