func (msg MsgRequestRandom) ValidateBasic() error {
	if _, err := sdk.AccAddressFromBech32(msg.Consumer); err != nil {
		return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid consumer address (%s)", err)
	}
	return ValidateServiceFeeCap(msg.ServiceFeeCap)
}
ValidateBasic implements Msg.
package types
import (
	sdk "github.com/cosmos/cosmos-sdk/types"
	sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
const (
	TypeMsgRequestRandom = "request_random"  
	DefaultBlockInterval = uint64(10)  
)
var _ sdk.Msg = &MsgRequestRandom{}
func NewMsgRequestRandom(
	consumer string,
	blockInterval uint64,
	oracle bool,
	serviceFeeCap sdk.Coins,
) *MsgRequestRandom {
	return &MsgRequestRandom{
		Consumer:      consumer,
		BlockInterval: blockInterval,
		Oracle:        oracle,
		ServiceFeeCap: serviceFeeCap,
	}
}
func (msg MsgRequestRandom) Route() string { return RouterKey }
func (msg MsgRequestRandom) Type() string { return TypeMsgRequestRandom }