Donation Pledges
Complete a donation pledge
Quickstart
Endpoints
- Organizations
- Transfers
- Recommendations
- Activity
- Funds
- Donation Pledges
Transactions
Subgraph Documentation
Donation Pledges
Complete a donation pledge
Completes a donation pledge by liquidating it, processing the donation, and returning the resulted donation.
This endpoint:
- Processes the pledge completion and returns the resulting donations
- All donations will have the amount of 10 USDC
POST
/
v1
/
donation-pledges
/
{id}
/
complete
curl --request POST \
--url https://api.endaoment.org/v1/donation-pledges/{id}/complete \
--header 'x-api-key: <x-api-key>'
[
{
"id": "9bc260c9-2724-48ac-802e-fcad3cf3fb88",
"destinationEntity": "4cc1500a-8dd0-4543-acf0-3b5433ef7a9a",
"entityType": "org",
"transactionHash": "0xffa8b0ef694866c23ae004b51661215d6654068cb3e0d3afca8d077047718673",
"destinationContractAddress": "0xa68bb66c56e99d3a8799907c02a77275a60bf4fe",
"donorUserId": "86a15444-e720-468d-a50d-e013ead44261",
"donorAddress": "0x18682b92bfa61e6c2c200c449fb0041124f05427",
"inputAmount": "250000",
"inputToken": {
"id": 1032,
"symbol": "FIAT.USD",
"name": "US Dollar",
"decimals": 6,
"logoUrl": "https://assets.coingecko.com/coins/images/6319/thumb/USD_Coin_icon.png?1547042389",
"type": "Token",
"featured": false,
"popularity": 0
},
"inputStock": null,
"netOutputBaseToken": "1",
"fee": "0",
"outputBaseToken": {
"id": 18,
"symbol": "USDC",
"name": "USD//C",
"decimals": 6,
"logoUrl": "https://assets.coingecko.com/coins/images/6319/thumb/USD_Coin_icon.png?1547042389",
"type": "EvmToken",
"featured": false,
"popularity": 0,
"chainId": 31337,
"contractAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
},
"createdAtUtc": "2025-03-26T18:20:48.493Z",
"chainId": 31337
}
]
Headers
API key used for authentication and authorization
Path Parameters
The unique identifier of the fund
Response
201
application/json
Pledge successfully completed
The response is of type object[]
.
Was this page helpful?
curl --request POST \
--url https://api.endaoment.org/v1/donation-pledges/{id}/complete \
--header 'x-api-key: <x-api-key>'
[
{
"id": "9bc260c9-2724-48ac-802e-fcad3cf3fb88",
"destinationEntity": "4cc1500a-8dd0-4543-acf0-3b5433ef7a9a",
"entityType": "org",
"transactionHash": "0xffa8b0ef694866c23ae004b51661215d6654068cb3e0d3afca8d077047718673",
"destinationContractAddress": "0xa68bb66c56e99d3a8799907c02a77275a60bf4fe",
"donorUserId": "86a15444-e720-468d-a50d-e013ead44261",
"donorAddress": "0x18682b92bfa61e6c2c200c449fb0041124f05427",
"inputAmount": "250000",
"inputToken": {
"id": 1032,
"symbol": "FIAT.USD",
"name": "US Dollar",
"decimals": 6,
"logoUrl": "https://assets.coingecko.com/coins/images/6319/thumb/USD_Coin_icon.png?1547042389",
"type": "Token",
"featured": false,
"popularity": 0
},
"inputStock": null,
"netOutputBaseToken": "1",
"fee": "0",
"outputBaseToken": {
"id": 18,
"symbol": "USDC",
"name": "USD//C",
"decimals": 6,
"logoUrl": "https://assets.coingecko.com/coins/images/6319/thumb/USD_Coin_icon.png?1547042389",
"type": "EvmToken",
"featured": false,
"popularity": 0,
"chainId": 31337,
"contractAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
},
"createdAtUtc": "2025-03-26T18:20:48.493Z",
"chainId": 31337
}
]