Helia
    Preparing search index...

    Interface TrustlessGatewayBlockBrokerInit

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

    Properties

    allowInsecure?: boolean

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

    false
    
    allowLocal?: boolean

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

    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.