# Function client::owner::delegate

> Signs a delegation of every v1 scope to `host`, valid from `now_ms`.

`zaun_community_protocol::client::owner::delegate` · Function

```rust
pub fn delegate(root: &SecretKey, community_id: CommunityId, host: &HostInfo, epoch: u64, expires_at: Option<u64>, now_ms: u64) -> Result<Signed<HostDelegation>, BuildError>
```

Signs a delegation of every v1 scope to `host`, valid from `now_ms`.

# Errors
`BuildError::Signed` for a field rule (addresses) or a signing failure.

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/client/owner/genesis/fn.delegate.html)
