How to create participant and there identities via rest API in Hyperledger Composer

+1 vote

How do I create participant, their identities via rest API that generated by composer rest server without importing cards via import wallets? Couldn't find a proper documentation for this.

Aug 10, 2018 in Blockchain by sabby
• 4,370 points
2,467 views
I searched for hours. This is the only page where I got the answer.
There's no single documentation telling how to create a participant.

I found this link, check it out. Not sure if it helps but here it is anyways: https://hyperledger.github.io/composer/v0.16/managing/participant-add

Hi @Kumar, the link you shared is about adding the participant, there's nothing on creating the participant.

1 answer to this question.

+1 vote
Best answer

If you have already imported an Identity that can issue ither identities, then you can do the following:

/Wallets/Import

- Browse for your exported admin card eg. netadmin.card and Import it.

- Add a participant, like in the below example:

Post /Trader

{
  "$class": "org.acme.trading.Trader",
  "tradeId": "trader1",
  "firstName": "John",
  "lastName": "Doe"
}

- Issue an identity mapped to that participant above

POST /system/identities/issue:
{

You should get a business network card in your Downloads folder - from your REST server go to /Wallets

/POST /wallet/import

Import the wallet when prompted. Then set that as the default user if you want to use it in your browser.

answered Aug 10, 2018 by Perry
• 17,100 points

selected May 2, 2019 by Omkar

Related Questions In Blockchain

0 votes
1 answer

Hyperledger composer: How to allow create in transaction? Access Control

This is how you can do it: /** @returns ...READ MORE

answered Nov 8, 2018 in Blockchain by Omkar
• 69,220 points
964 views
0 votes
1 answer

How to extend Composer rest Server ?

 It looks like you want to query ...READ MORE

answered Sep 20, 2018 in Blockchain by Perry
• 17,100 points
890 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP