Skip to main content

TransactionMsg

Defines the abstract transaction message.


class TransactionMsg<T = any> {
static TYPE: string;
constructor(public typeUrl: string, public value: T) {}
toCosmosMsg(): CosmosMsg;
toAminoMsg(): AminoMsg<T>;
toProtoMsg(): ProtoMsg;
toTerraExtensionMsg(): string;
}


CosmosMsg

Defines the cosmos message type.


type CosmosMsg = {
typeUrl: string;
value: any;
};

AminoMsg

Defines the amino message type.


type AminoMsg<T = any> = {
type: string;
value: T;
};

ProtoMsg

Defines the amino message type.


type ProtoMsg = {
typeUrl: string;
value: Uint8Array;
};