A rule builder to allow defining rules that mock the current block number.
This builder should not be constructed directly. Call mockNode.forBlockNumber() instead.
mockNode.forBlockNumber()
Close the connection immediately after receiving the matching request, without sending any response.
This method completes the rule definition, and returns a promise that resolves once the rule is active.
Fail and return an error message.
Successfully return a given value.
Timeout, accepting the request but never returning a response.
Generated using TypeDoc
A rule builder to allow defining rules that mock the current block number.