DGL CLI Demonstration¶
Current node addresses
Commands used¶
Node | Command |
---|---|
amer | notaries |
amer | ledger.createAccount("myBankAMER4", "OU=Cordite Foundation, O=Cordite Guardian Notary, L=London, C=GB") |
apac | ledger.createAccount("myBankAPAC4", "OU=Cordite Foundation, O=Cordite Guardian Notary, L=London, C=GB") |
amer | ledger.createTokenType("TOK4", 2, "OU=Cordite Foundation, O=Cordite Guardian Notary, L=London, C=GB") |
amer | ledger.issueToken("myBankAMER4", 100, "TOK4", "my first token", "OU=Cordite Foundation, O=Cordite
Guardian Notary, L=London, C=GB") |
amer | ledger.balanceForAccount("myBankAMER4") |
amer | ledger.transferToken(10, "TOK4:2:OU=Cordite Foundation, O=Cordite AMER, L=New York City, C=US",
"myBankAMER4", "myBankAPAC4@OU=Cordite Foundation, O=Cordite APAC, L=Singapore, C=SG", "my first
transfer", "OU=Cordite Foundation, O=Cordite Guardian Notary, L=London, C=GB") |
apac | ledger.balanceForAccount("myBankAPAC4") |
amer | ledger.balanceForAccount("myBankAMER4") |