Skip to content

Corda Demo Code for the Delivery Versus Payment Security Trade Use Case

License

Notifications You must be signed in to change notification settings

amitpitambare/Corda-FungibleAsset-UseCase

Repository files navigation

VBC CordaApp

Fungible Asset CordaApp

Steps for Executing Corda Flows from Interactive Shell

1. To create Asset - run below command on SecuritySeller node's console:
flow start com.asp.cordaapp.seller.flows.CreateAssetFlow assetName: "Abc Equity", purchaseCost: $20000, assetCode: "CUSIP226"
To see state created run below command:
run vaultQuery contractStateType: com.asp.corda.states.AssetState
2. To create AssetTransfer - run below command again on SecuritySeller node's console:
flow start com.asp.cordaapp.seller.flows.AssetTransferRequestInitiateFlow assetCode: "CUSIP226", assetBuyer: "O=SecurityBuyer,L=New 	York,C=US"
To see AssetTransfer state created run below command again:
run vaultQuery contractStateType: com.asp.corda.states.AssetTransferState
3. The Buyer party confirm AssetTransfer request received by running below command on counterparty SecurityBuyer node's console:
flow start com.asp.cordapp.buyer.flows.ConfirmAssetTransferRequestInitiatorFlow linearID: "2e414be2-e448-4b79-8d52-ca6e8ee7fbd0"

About

Corda Demo Code for the Delivery Versus Payment Security Trade Use Case

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published