Create a crypto donation pledge
Creates a new donation pledge for a cryptocurrency donation to Endaoment.
Authentication is optional:
- Authenticated users will have the pledge associated with their account
- Unauthenticated users can still create pledges but won’t have them linked to any account
This endpoint allows users to:
- Register their crypto donation with Endaoment, alongside the transaction hash proving the donation happened on-chain
- Specify the amount and receiving fund
- Optionally provide donor identity information for the donation receipt
For transactions on Ethereum (or any other chain our protocol is deployed on), please use the smart contracts + ‘donations’ endpoint instead.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Asset that was pledged to the entity
Transaction hash proving that the asset was sent to the entity
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
The type of the entity receiving the pledge
org
, fund
, subproject
"fund"
The ID of the entity receiving the pledge
"123e4567-e89b-12d3-a456-426614174000"
The ID of the recommendation that led to the pledge
"123e4567-e89b-12d3-a456-426614174000"
Whether the fund needs it's investments rebalanced after the pledge is deemed fulfilled
false
Optional donor name the donor might want to expose to the receiving entity
Optional identity information to be used in the donation receipt
Inform if user wants to update their global identity based on the informed donation identity
false
Whether the donor wants to share their email with the org
false
Response
Unique identifier of the created donation pledge
"123e4567-e89b-12d3-a456-426614174000"
Was this page helpful?