eth-json-rpc-middleware

  • Version 7.0.1
  • Published
  • 123 kB
  • 9 dependencies
  • ISC license

Install

npm i eth-json-rpc-middleware
yarn add eth-json-rpc-middleware
pnpm add eth-json-rpc-middleware

Overview

Ethereum-related json-rpc-engine middleware.

Index

Functions

function createBlockCacheMiddleware

createBlockCacheMiddleware: ({
blockTracker,
}?: BlockCacheMiddlewareOptions) => any;

    function createBlockRefMiddleware

    createBlockRefMiddleware: ({
    provider,
    blockTracker,
    }?: BlockRefMiddlewareOptions) => any;

      function createBlockRefRewriteMiddleware

      createBlockRefRewriteMiddleware: ({
      blockTracker,
      }?: BlockRefRewriteMiddlewareOptions) => any;

        function createBlockTrackerInspectorMiddleware

        createBlockTrackerInspectorMiddleware: ({
        blockTracker,
        }: BlockTrackerInspectorMiddlewareOptions) => any;

          function createFetchConfigFromReq

          createFetchConfigFromReq: ({
          req,
          rpcUrl,
          originHttpHeaderKey,
          }: FetchMiddlewareFromReqOptions) => FetchConfig;

            function createFetchMiddleware

            createFetchMiddleware: ({
            rpcUrl,
            originHttpHeaderKey,
            }: FetchMiddlewareOptions) => any;

              function createInflightCacheMiddleware

              createInflightCacheMiddleware: () => any;

                function createRetryOnEmptyMiddleware

                createRetryOnEmptyMiddleware: ({
                provider,
                blockTracker,
                }?: RetryOnEmptyMiddlewareOptions) => any;

                  function createWalletMiddleware

                  createWalletMiddleware: ({
                  getAccounts,
                  processDecryptMessage,
                  processEncryptionPublicKey,
                  processEthSignMessage,
                  processPersonalMessage,
                  processTransaction,
                  processTypedMessage,
                  processTypedMessageV3,
                  processTypedMessageV4,
                  }: WalletMiddlewareOptions) => any;

                    function providerAsMiddleware

                    providerAsMiddleware: (provider: SafeEventEmitterProvider) => any;

                      function providerFromEngine

                      providerFromEngine: (engine: any) => SafeEventEmitterProvider;

                        function providerFromMiddleware

                        providerFromMiddleware: (middleware: any) => SafeEventEmitterProvider;

                          Package Files (12)

                          Dependencies (9)

                          Dev Dependencies (20)

                          Peer Dependencies (0)

                          No peer dependencies.

                          Badge

                          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/eth-json-rpc-middleware.

                          • Markdown
                            [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/eth-json-rpc-middleware)
                          • HTML
                            <a href="https://www.jsdocs.io/package/eth-json-rpc-middleware"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>