OptionalallowOptionalallowBy default we will only connect to peers with public or DNS addresses, pass true to also connect to private addresses.
OptionaldelegatedDelegated routers are servers that make routing requests on behalf of peers with less capable network connectivity.
OptionalrecursiveA recursive gateway is one that will fetch content on behalf of peers with less capable network connectivity. For example it may fetch content from a node that supports transport(s) which the requesting peer does not.
These are used as fallback routers which will always claim to be providers of a given block.
OptionaltransformProvide a function that will be called before querying trustless-gateways. This lets you modify the fetch options to pass custom headers or other necessary things.
By default we will only connect to peers with HTTPS addresses, pass true to also connect to HTTP addresses.