pub async fn sync( seed: &WalletSeed, endpoint: &str, verify_endpoints: &str, mainnet: bool, json: bool, from: Option<u32>, from_position: Option<u64>, ) -> Result<u32, Error>