weight that determines its share. Weights are relative: a charity with weight 2 receives twice as much as one with weight 1.
Create a config
POST /developer/configs
Creates a new config with charity beneficiaries. At least one beneficiary is required.
| Field | Type | Description |
|---|---|---|
charityBeneficiaries | array | One or more charity beneficiaries with weights |
charityBeneficiaries[].charityId | string | ID of a verified charity |
charityBeneficiaries[].weight | integer | Relative weight, must be greater than 0 |
201
id is a bytes32 hex string. Use this as the config ID in your on-chain transactions.
Error responses
| Status | Code | Description |
|---|---|---|
400 | VALIDATION_ERROR | Missing or invalid fields |
400 | CHARITY_NOT_FOUND | One or more charity IDs don’t exist |
400 | DUPLICATE_CHARITY_IDS | The same charity appears more than once |
400 | INVALID_JSON | Request body is not valid JSON |
List configs
GET /developer/configs
Returns a paginated list of all configs created by your developer account.
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | integer | 50 | Results per page, max 200 |
cursor | string | - | Cursor from previous pageKey for next page |
includeTotal | "true" | "false" | "false" | Include total count in response |
Get a config by ID
GET /developer/configs/{configId}
Returns a single config with its beneficiaries and charity wallet addresses.
| Parameter | Description |
|---|---|
configId | The config ID (bytes32 hex) |
| Status | Code | Description |
|---|---|---|
404 | NOT_FOUND | No config found with the given ID |