• Creates a Stargate message object with a fee.

    Type Parameters

    • T extends keyof MessageTypes

    Parameters

    • message: T

      The type of the message.

    • messageBody: MessageTypes[T]

      The body of the message.

    Returns {
        fee: { amount: { amount: string; denom: string }[]; gas: string };
        message: { typeUrl: T; value: MessageTypes[T] };
    }

    The Stargate message object with a fee.