- Delegated call → the subject user’s grant.
- Direct (self) call → the caller’s own self-grant.
- Call from another contract → the same grant as the original caller. A tenant contract reached over
contracts-callnever reaches more than the user behind the call granted.
api.example.com) isn’t on the grant’s allowed-hosts list, the contract still runs but the outbound call is denied with host/http.egress_denied.
A grant is necessary but not always sufficient. Whatever the grant says, the node also holds every contract HTTP call to:
- Public addresses only. A host that is private, loopback or a cloud-metadata address — or a name that resolves only to such addresses — is refused, even if the grant lists it.
- A time limit and a size limit. By default a call must finish within 30 seconds and its response body must be no larger than 10 MiB; otherwise it fails (
host/http.response_too_largefor the body). The operator sets these limits, and neither can be changed from the contract or the grant.