glassnode-api - v0.29.3
    Preparing search index...

    Interface X402FetchOptions

    Options for createX402Fetch.

    interface X402FetchOptions {
        account: X402SignerAccount;
        fetch?: {
            (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
            (input: string | Request | URL, init?: RequestInit): Promise<Response>;
        };
        maxPaymentPerCall?: string;
    }
    Index

    Account used to sign payment authorizations (e.g. a viem privateKeyToAccount(pk)).

    fetch?: {
        (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
        (input: string | Request | URL, init?: RequestInit): Promise<Response>;
    }

    Base fetch to wrap. Default globalThis.fetch.

    Type Declaration

      • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: RequestInfo | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | Request | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | Request | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

    maxPaymentPerCall?: string

    Per-call spend ceiling in USDC (decimal string). Default '0.06' (just above the $0.05 metric price).