middleware

near-bindgenDocs


near-sdk-js v2.0.0 / near-bindgen / middleware

Function: middleware()

middleware<Arguments>(...middlewares): DecoratorFunction

Tells the SDK to apply an array of passed in middleware to the function execution.

Type Parameters

Arguments extends any[]

Parameters

• ...middlewares: Middleware<Arguments>[]

The middlewares to be executed.

Returns

DecoratorFunction

Defined in

packages/near-sdk-js/src/near-bindgen.ts:132

Last updated