Skip to main content

Function: getMethodHandler()

function getMethodHandler(contract_module, methodName): MethodCallback;

Retrieves the method handler for a specific method name.

Parameters​

• contract_module: ContractHandlers

Contract module containing the method.

• methodName: string

The name of the method.

Returns​

MethodCallback

The method callback for the specified method name.

Throws​

Will throw an error if no handler is specified for the method name.


Coinweb © 2025