Skip to content

Instantly share code, notes, and snippets.

@amolpednekar
Created January 8, 2019 04:29
Show Gist options
  • Save amolpednekar/aa2659eb893cd10640155e4311ef2c04 to your computer and use it in GitHub Desktop.
Save amolpednekar/aa2659eb893cd10640155e4311ef2c04 to your computer and use it in GitHub Desktop.
// Create a connection to PartyA and PartyB.
val (partyAProxy, partyBProxy) = args.map { arg ->
val nodeAddress = parse(arg)
val client = CordaRPCClient(nodeAddress)
client.start("user1", "test").proxy
}
// Issue a State that uses OldContract onto the ledger.
val partyBIdentity = partyBProxy.nodeInfo().legalIdentities.first()
partyAProxy.startFlowDynamic(Initiator::class.java, partyBIdentity)
Thread.sleep(5000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment