Type for a JSON-RPC response. It is a wrapped JsonRpcResponse of hardhat. you can find the original into "hardhat/types".

we wrap here the original type to avoid the usage of hardhat dependency for provider package.

interface JsonRpcResponse {
    error?: {
        code: number;
        data?: unknown;
        message: string;
    };
    id: number;
    jsonrpc: string;
    result?: unknown;
}

Properties

error?: {
    code: number;
    data?: unknown;
    message: string;
}
id: number
jsonrpc: string
result?: unknown