v1/donation-pledges/wire/details/domestic
API. Your application must clearly display these wire instructions and set proper expectations for users.
/get-dafs
.
The following code snippet, taken from the backend/routes/get-dafs.ts file in the quickstart example, demonstrates how to call the API:
https://api.dev.endaoment.org/v1/funds/mine
API being called, check the API docs
The following code snippet, taken from the frontend/components/all-dafs/AllDAFs.tsx file in the quickstart example, demonstrates how to display the list of DAFs to the user:
/get-wire-instructions
.
Remember that the wire instructions can change, so it is recommended to fetch the wire instructions each time a user decides to donate.
/wire-donation
route. We will set up this route in the next step.
/wire-donation
.
The following code snippet, taken from the backend/routes/wire-donation.ts file in the quickstart example, demonstrates how to call the API: