etherscan-api
    Preparing search index...

    Interface EtherscanResponse<T>

    A raw Etherscan API response body, generic over the shape of result. REST endpoints return { status, message, result }; JSON-RPC proxy endpoints return { jsonrpc, id, result } or { ..., error }. result is T | undefined because it is absent on some error responses.

    interface EtherscanResponse<T = unknown> {
        error?: unknown;
        id?: number;
        jsonrpc?: string;
        message?: string;
        result?: T;
        status?: string;
        [key: string]: unknown;
    }

    Type Parameters

    • T = unknown

      The shape of the result field for a given endpoint (default unknown).

    Indexable

    • [key: string]: unknown
    Index

    Properties

    error?: unknown
    id?: number
    jsonrpc?: string
    message?: string
    result?: T
    status?: string