Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 1.05 KB

README.md

File metadata and controls

30 lines (17 loc) · 1.05 KB

ba-permissioned-token

ERC20 Token implementation on Hyperledger Fabric

steps to start network and application

install prereqs, composer, fabric etc. Assuming to use HLFV12 with composer v0.20.5+

run scripts: /fabric-dev-servers/startFabric.sh

/fabric-dev-servers/createPeerAdminCard.sh

run commands: in bna folder bna folder - is project folder ?

mkdir ./dist && composer archive create --sourceType dir --sourceName . -a ./dist/[email protected]

composer network install -a ./dist/[email protected] -c PeerAdmin@hlfv1

composer network start --networkName ba_token --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file token-admin.card

composer card import --file token-admin.card

composer-rest-server -c admin@ba_token -a false

Create Participant

composer participant add -c admin@ba_token -d '{"$class":"org.ba_token.ba.TokenHolder","participantId":"tokenHolder1", "balance":"0", "participantInfo":{"$class":"org.ba_token.ba.ParticipantInfo","firstName":"Jon","lastName":"Smith"}}'