fn check_balance<N: Network>( private_key: &PrivateKey<N>, endpoint: &str, network: &str, context: &Context, total_cost: u64, ) -> Result<()>