Created
June 30, 2020 17:52
-
-
Save davidawad/112ccd6f3f1ddcadd0917e76091a3001 to your computer and use it in GitHub Desktop.
quick java snippet of corda accounts sdk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Suspendable | |
@Override | |
public String call() throws FlowException { | |
//Generate accountinfo & AnonymousParty object for transaction | |
AccountInfo issuerAccountInfo = UtilitiesKt.getAccountService(this).accountInfo(issuer).get(0).getState().getData(); | |
AccountInfo ownerAccountInfo = UtilitiesKt.getAccountService(this).accountInfo(owner).get(0).getState().getData(); | |
AnonymousParty issuerAccount = subFlow(new RequestKeyForAccount(issuerAccountInfo)); | |
AnonymousParty ownerAccount = subFlow(new RequestKeyForAccount(ownerAccountInfo)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment