check_valid_domain_agreement

Function check_valid_domain_agreement 

Source
pub async fn check_valid_domain_agreement(config: Config) -> Result<(), Error>
Expand description

Check that there is an active Domain Agreement for the given config.

This function can be used as a safe-guard before starting a domain or submitting transactions. The base layer only accepts transactions from domains with a valid domain agreement.

If you already have a running domain, you can call DomainClient::check_valid_domain_agreement directly. See Config for how to load configuration.