weight. Weights are relative: a charity with weight 2 receives twice as much as one with weight 1.
Config IDs are returned as { "hex": string, "base58": string }. hex is the on-chain bytes32. base58 is the same value encoded for Solana. Either form works in path parameters.
For aggregate stats and donor rankings on configs you own, see Config Stats and Config Leaderboard.
Create a config
POST /configs
Creates a new config with charity beneficiaries. At least one beneficiary is required, and at most 5 beneficiaries are allowed.
Re-posting an identical set of beneficiaries for the same project is idempotent: the API returns the existing config with status 201.
Response
201
Weights in responses are strings to preserve full precision for values beyond
Number.MAX_SAFE_INTEGER. Charity objects match the Charities shape, plus
weight.List configs
GET /configs
Returns a paginated list of all configs created by your developer project.
Response
Get a config by ID
GET /configs/{configId}
Returns a single config with its user and charity beneficiaries. Any valid API key can fetch a config by ID. Aggregate donation stats are not included here — use GET /configs/{configId}/stats for that.
Response
Delete a config
DELETE /configs/{configId}
Deletes a config you own. Returns 204 No Content on success with an empty body.
Error responses