Sets context value
@param setChainContext
@param chainId
@param name
@param value
function setContextValue(setChainContext, chainId, name, value) {
    if (value instanceof Function) {
        throw new FunctionAsValueException();
    }
    setChainContext(chainId, name, value);
}