pub fn new_sub_account(name: &str, index: Option<u32>, count: u32) -> Result<()>
Expand description

Create one or many sub accounts of the current account

Example

crate::api::account::new_sub_account("test", None, 5)

Arguments

  • name: name of the sub accounts. Every sub account will have the same name
  • index: Starting index. If None, use the index following the highest used index
  • count: Number of subaccounts to create