Interface TrustlessGatewayBlockBrokerInit

interface TrustlessGatewayBlockBrokerInit {
    allowInsecure?: boolean;
    allowLocal?: boolean;
    transformRequestInit?: TransformRequestInit;
}

Properties

allowInsecure?: boolean

By default we will only connect to peers with HTTPS addresses, pass true to also connect to HTTP addresses.

Default

false
allowLocal?: boolean

By default we will only connect to peers with public or DNS addresses, pass true to also connect to private addresses.

Default

false
transformRequestInit?: TransformRequestInit

Provide 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.