Skip to content

Commit

Permalink
[ADD]: unregister-accounts
Browse files Browse the repository at this point in the history
Signed-off-by: Stukalov-A-M <[email protected]>
  • Loading branch information
Stukalov-A-M committed Feb 9, 2024
1 parent 1fd5958 commit 594b866
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/cookbook/check-status.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ head:
```rust
// To get the status, the Client struct already has a function get_status(),
// so you may just execute it.
// The result message will include a deserialized json object with parameters like:
// Quantity of peers
// Quantity of blocks
// Quantity of accepted and rejected transactions and some more
let status = iroha_client.get_status().unwrap();
println!("{:?}", status);
```
11 changes: 10 additions & 1 deletion src/cookbook/unregister-accounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,13 @@ head:

# How to Unregister Accounts

TODO
```rust
//Note:
// Only domain owner or account with appropriate permission token can unregister another account
//First we need to define an account id that we want to unregister
let account_id = AccountId::from_str("artem@disneyland").unwrap();
//Then we need to define an Unregister expression
let expression = UnregisterExpr::new(account_id);
//And finally we need to send the transaction
iroha_client.submit_blocking(expression).unwrap();
```

0 comments on commit 594b866

Please sign in to comment.