2021 Call for Code Awards: Live from New York, with SNL’s Colin Jost! Learn more

Archived | Track donations with blockchain

Archived content

Archive date: 2019-05-01

This content is no longer being updated or maintained. The content is provided “as is.” Given the rapid evolution of technology, some content, steps, or illustrations may have changed.

Note: This code pattern is currently being updated to focus on IBM Blockchain Platform V2.0.


Imagine if every citizen had the confidence that philanthropic commitments to support societal challenges such as extreme poverty were being honored. That resources were in fact filtering down to the people with the greatest needs. That every dollar donated and spent was making a real impact. Wouldn’t a more transparent system motivate people to more readily champion worthy causes? Or better yet, inspire them to donate more themselves?

Complete this pattern to build a simple three-member network using the IBM Blockchain Platform, on which cause-specific pledges and fund transfers are made by the government, registered with aid organizations, and validated by Global Citizen. then use scikit-learn to train several models and evaluate which have the most accurate predictions of opioid prescriptions.


Global Citizen is one of the most innovative non-governmental organizations on the planet. Over the past decade, it has catalyzed more than 13 million actions from its member community and is making a marked contribution to our most important causes. Global Citizen is an industry leader in philanthropic accountability and continues to grow as a true voice of the people.

One of the major issues Global Citizen sees today is the lack of transparency and accountability surrounding a donation itself. If, as a society, we are going to actually solve such massive problems as extreme poverty or infectious disease, we need to make sure that every cause is getting the money promised, especially from the world’s most impactful donor groups: federal governments.

Blockchain can provide the transparency and accountability that citizens demand. By working together, IBM Blockchain and Global Citizen are empowering developers to construct a first-of-its-kind donation-tracking application, all done on a blockchain platform.

In this IBM Code developer pattern, we walk you through how to build a simple three-member network on the IBM Blockchain Platform™ (government, AID.org, and Global Citizen) on which cause-specific pledges and fund transfers are made by the government, registered with aid organizations, and validated by Global Citizen. Complete this pattern to learn how to create, configure, and interact with the IBM Blockchain Platform Starter Plan using our Starter Kit, Hyperledger Composer Playground and Hyperledger Composer REST server.



  1. Create and send pledge proposal to Global Citizen organization for review.
  2. Send pledge proposal to government organization for funds.
  3. Update pledge proposal with funding specifications.
  4. Transfer funds according to the pledge.


Find the detailed steps for this pattern in the README. Those steps will show you how to:

  1. Generate the Business Network Archive (BNA).

  2. Create the Blockchain Service.

  3. Get the secret.

  4. Use secret to get certificates from the certificate authority.

  5. Use admin-pub.pem file to add certificates to the peers.

  6. Create the admin business network card.

  7. Install the runtime and start the network.

  8. Create a new business network card.

  9. Interact with the business network.