CCC Docs
    Preparing search index...

    Interface representing a method to send requests to the provider.

    • Signs a message with the personal account.

      Parameters

      • request: { method: "personal_sign"; params: [string, `0x${string}`] }

        The request object.

      Returns Promise<`0x${string}`>

      A promise that resolves to the signed message.

    • Requests the accounts from the provider.

      Parameters

      • request: { method: "eth_requestAccounts"; params?: undefined }

        The request object.

      Returns Promise<`0x${string}`[]>

      A promise that resolves to an array of account addresses.

    • Gets the accounts from the provider.

      Parameters

      • request: { method: "eth_accounts"; params?: undefined }

        The request object.

      Returns Promise<`0x${string}`[]>

      A promise that resolves to an array of account addresses.

    • Sends a generic request to the provider.

      Parameters

      • request: { method: string; params?: unknown[] | Record<string, unknown> }

        The request object.

      Returns Promise<unknown>

      A promise that resolves to the response from the provider.