Alchemy Logo

middlewareActions

function middlewareActions(
  overrides,
): <TTransport, TChain, TAccount>(client) => object;

Defined in: aa-sdk/core/src/middleware/actions.ts:50

function that takes in ClientMiddlewareConfig used during client initiation and returns the middleware actions object that the smart account client extends with

ParameterTypeDescription

overrides

ClientMiddlewareConfig

config used during client initiation for overriding default middlewares

middleware actions object

<TTransport, TChain, TAccount>(client): object;

Type ParameterDefault type

TTransport extends Transport

Transport

TChain extends undefined | Chain

undefined | Chain

TAccount extends | undefined | SmartContractAccount

| undefined | SmartContractAccount

ParameterType

client

MiddlewareClient<TTransport, TChain, TAccount>

object

NameType

middleware

ClientMiddleware

Was this page helpful?