pub async fn submit_domain_agreement(
config: Config,
new_shard_fee: Planck,
local_laws_vkey: Option<VerificationKey>,
) -> Result<(), Error>Expand description
Submit a Domain Agreement for the given config.
Having an active domain agreement is a prerequisite to submit transactions to the base layer. You can check whether a domain agreement is already active with check_valid_domain_agreement.
Note that after submitting the domain agreement, it still has to be applied on the base layer, before the domain is allowed to send transactions.
##Â Parameters
config- configuration data of the domain. See Config for how to load configuration.new_shard_fee- amount of native token that will be charged to the domain operator keys’s base layer vault for creation of the new shardlocal_laws_vkey- verification key of the enforced local laws of the domain
If you already have a running domain, you can call DomainClient::submit_domain_agreement directly.