etherscan-api
    Preparing search index...

    Interface TransportOptions

    interface TransportOptions {
        allowInsecure?: boolean;
        body?: string;
        maxResponseBytes?: number;
        method?: "GET" | "POST";
        timeout?: number;
    }
    Index

    Properties

    allowInsecure?: boolean

    Permit cleartext http:// URLs. The default transport refuses non-HTTPS URLs unless this is set, so a misconfigured base URL cannot silently send the API key over the wire unencrypted. Defaults to false.

    body?: string

    Form-encoded request body, set for POST requests.

    maxResponseBytes?: number

    Maximum response body size in bytes. The default transport aborts and rejects once the accumulated body exceeds this, guarding against memory-exhaustion from an oversized response. Defaults to 50 MB.

    method?: "GET" | "POST"

    HTTP method (default 'GET'). 'POST' is used by the verification endpoints.

    timeout?: number

    Request timeout in milliseconds.