Type¶
The static readonly property Type will be used in the AbstractMethodFactory class to determine how the class should get initiated.
Reserved types:
observed-transaction-method-AbstractObservedTransactionMethodeth-send-transaction-method-EthSendTransactionMethod
Returns¶
string - Example: observed-transaction-method
beforeExecution¶
method.beforeExecution(moduleInstance)
This method will be executed before the JSON-RPC request. It provides the possibility to customize the given parameters or other properties of the current method.
afterExecution¶
method.afterExecution(response)
This method will get executed when the provider returns with the response.
The afterExecution method does provide us the possibility to map the response to the desired value.
Parameters¶
response-anyThe response from the provider.
execute¶
method.execute()
This method will execute the current method.
Returns¶
Promise<Object|string>|PromiEvent|string
rpcMethod¶
method.rpcMethod
This property will return the rpcMethod string.
It will be used for the creation of the JSON-RPC payload object.
Returns¶
string
parametersAmount¶
method.parametersAmount
This property will return the parametersAmount.
It will be used for validating the given parameters length and for the detection of the callback method.
Returns¶
number
parameters¶
method.parameters
This property does contain the given parameters.
Use the setArguments() method for setting the parameters and the callback method with the given IArguments object.
Returns¶
any[]
callback¶
method.callback
This property does contain the given callback.
Use the setArguments() method for setting the parameters and the callback method with the given IArguments object.
setArguments¶
method.setArguments(arguments)
This method will be used to set the given method arguments.
The setArguments method will set the parameters and callback property.
Parameters¶
arguments-Array: Theargumentsof the function call.
getArguments¶
method.getArguments()
This method will be used to get the method arguments.
The getArguments method will return a object with the properties parameters and callback.
Returns¶
Object